| View previous topic :: View next topic |
| Author |
Message |
daorc
Joined: 18 Oct 2006 Posts: 78
|
Posted: Fri Oct 26, 2007 5:19 pm Post subject: I don't understand VB (I know this is AHK forum!) |
|
|
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!!!
 |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Fri Oct 26, 2007 8:15 pm Post subject: |
|
|
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 |
|
 |
daorc
Joined: 18 Oct 2006 Posts: 78
|
Posted: Fri Oct 26, 2007 9:31 pm Post subject: |
|
|
Afraid not - still get the "EXE corrupt" error message Thanks though. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Fri Oct 26, 2007 11:20 pm Post subject: |
|
|
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 |
|
 |
Leon
Joined: 27 Aug 2007 Posts: 179
|
Posted: Sat Oct 27, 2007 1:20 am Post subject: |
|
|
What is signing?
Not hijacking. Might be able to help / be helped here. |
|
| Back to top |
|
 |
daorc
Joined: 18 Oct 2006 Posts: 78
|
Posted: Sat Oct 27, 2007 8:17 am Post subject: |
|
|
| 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.
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 |
|
 |
Leon
Joined: 27 Aug 2007 Posts: 179
|
Posted: Sat Oct 27, 2007 5:22 pm Post subject: |
|
|
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 |
|
 |
daorc
Joined: 18 Oct 2006 Posts: 78
|
Posted: Sat Oct 27, 2007 6:09 pm Post subject: |
|
|
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
Daorc |
|
| Back to top |
|
 |
Leon
Joined: 27 Aug 2007 Posts: 179
|
Posted: Sat Oct 27, 2007 7:31 pm Post subject: |
|
|
| 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 |
|
 |
ManaUser
Joined: 24 May 2007 Posts: 906
|
Posted: Sat Oct 27, 2007 8:48 pm Post subject: |
|
|
| 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 |
|
 |
Leon
Joined: 27 Aug 2007 Posts: 179
|
Posted: Sat Oct 27, 2007 9:34 pm Post subject: |
|
|
| 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 |
|
 |
|