AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I don't understand VB (I know this is AHK forum!)

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
daorc



Joined: 18 Oct 2006
Posts: 78

PostPosted: Fri Oct 26, 2007 5:19 pm    Post subject: I don't understand VB (I know this is AHK forum!) Reply with quote

Ok – now I really appreciate AHK! All I want to do is create a program (in VB) that shell’s an autohotkey exe (the reason being that I want to sign the exe, which can’t be done to AHK files because of the checksum put in on compilation). Please, someone tell me how to do this! VB makes no sense to someone who is so used to AHK. I’ve tried making a form with this code;
Code:
 Public Class Form1
    Public Sub New()

        Shell("C:\test.exe")

    End Sub
End Class


But how can I make this run without popping up some silly form. Do I use a ‘module’, or a ‘class’. What are these things anyway! HELP!!!
Sad
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Fri Oct 26, 2007 8:15 pm    Post subject: Reply with quote

you may be able to sign the compiled ahk script if you remove the upx compression.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
daorc



Joined: 18 Oct 2006
Posts: 78

PostPosted: Fri Oct 26, 2007 9:31 pm    Post subject: Reply with quote

Afraid not - still get the "EXE corrupt" error message Sad Thanks though.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Fri Oct 26, 2007 11:20 pm    Post subject: Reply with quote

how did you remove the compression?
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Leon



Joined: 27 Aug 2007
Posts: 179

PostPosted: Sat Oct 27, 2007 1:20 am    Post subject: Reply with quote

What is signing?
Not hijacking. Might be able to help / be helped here.
Back to top
View user's profile Send private message
daorc



Joined: 18 Oct 2006
Posts: 78

PostPosted: Sat Oct 27, 2007 8:17 am    Post subject: Reply with quote

Quote:
how did you remove the compression?

By deleting the UPX.exe from the AHK compiler folder. That made files about 400kB, so i guess it worked.

Quote:
What is signing?

Digital signing allows the end user to know who created the software, and makes it more trusted. See http://www.autohotkey.com/forum/topic21715.html&highlight=verisign or search MSDN for more info.
Back to top
View user's profile Send private message
Leon



Joined: 27 Aug 2007
Posts: 179

PostPosted: Sat Oct 27, 2007 5:22 pm    Post subject: Reply with quote

Interesting info

Does it make a big difference to the credibility of a product if unsigned?
Even if its only available for DL at author's site?
Back to top
View user's profile Send private message
daorc



Joined: 18 Oct 2006
Posts: 78

PostPosted: Sat Oct 27, 2007 6:09 pm    Post subject: Reply with quote

Well...
1. its more professional
2. it means that if the code is tampered with, the user will know (because the certificate becomes invalid)

The best solution to this probkem would be to make it possible to sign AHK compiled exes, but from other forrum topics, I don't think this is possible Sad

Daorc
Back to top
View user's profile Send private message
Leon



Joined: 27 Aug 2007
Posts: 179

PostPosted: Sat Oct 27, 2007 7:31 pm    Post subject: Reply with quote

Quote:
if the code is tampered with, the user will know
Out of interest - what reason would someone have to tamper with an exe that I may not be thinking of?
(Besides just malicious or info-seeking reasons for getting their own code onto a machine.)

And how would people get their hands on a tampered version unless they got it somewhere other than Author's site?

Couldn't Author just have a disclaimer in the install process / on-site to say not to trust "App.exe" unless DL'ed directly from "Site.com"

This seems logical to me but i ask coz it also seems logicall that I'm wrong due to the fact that signing exists. Or is it really for use with mirror sites, on-dik distribution etc?
Back to top
View user's profile Send private message
ManaUser



Joined: 24 May 2007
Posts: 906

PostPosted: Sat Oct 27, 2007 8:48 pm    Post subject: Reply with quote

Personally, I think signing is kind of silly, but I suppose if you're making a freeware or shareware app it could be useful. That way even if the user gets it from Download.com or some other random place they know it hasn't had spyware inserted or something.
Back to top
View user's profile Send private message
Leon



Joined: 27 Aug 2007
Posts: 179

PostPosted: Sat Oct 27, 2007 9:34 pm    Post subject: Reply with quote

ManaUser wrote:
Personally, I think signing is kind of silly, but I suppose if you're making a freeware or shareware app it could be useful. That way even if the user gets it from Download.com or some other random place they know it hasn't had spyware inserted or something.
This is what I'm staring to thing too.
I'm imagining a scenario where I sell some prog inexpensivel and allow only one outlet (my site) - no signing, no problem - right?
Maybe wrong?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group