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 

Compiled script: "exe corrupted" on Windows Server

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



Joined: 30 Jan 2005
Posts: 125
Location: Darmstadt, Germany

PostPosted: Fri Apr 04, 2008 7:51 am    Post subject: Compiled script: "exe corrupted" on Windows Server Reply with quote

Hi,
I installed Windows Server 2008 (Standard Edition, 32bit, 60-day trial) in VirtualBox VM.
I tried to run a compiled script which works flawlessly under 2k, XP, Vista a.s.o.
If I run it under WS2k8, a Windows error message pops up saying "exe corrupted". Is there a known limitation in AHK with respect to this very new OS or have I done something wrong? I have not yet tested to install AHK and run the script uncompiled with AHK itself (this is not what I intend to end up with).

Regards,
Rob
Back to top
View user's profile Send private message
k3ph



Joined: 21 Jul 2006
Posts: 123

PostPosted: Fri Apr 04, 2008 12:43 pm    Post subject: Reply with quote

try to compile it disabling upx.
it seems not a ahk problem but a compression one.

for compiling without upx, go to \AutoHotkey\Compiler folder and rename upx.exe to anything (eg: upx.exe.backup)
Back to top
View user's profile Send private message
RobOtter



Joined: 30 Jan 2005
Posts: 125
Location: Darmstadt, Germany

PostPosted: Fri Apr 04, 2008 6:50 pm    Post subject: Reply with quote

Thanks for the hint, but it doesn´t work. Although the file is nearly doubled in size (proof that UPX packer is not used), the message stays the same.

But I finally found the problem. It was only because I tried to start the app from the shared folder I had defined within VirtualBox. After simply copying it to a local folder inside the virtually running Windows Server 2008, everything worked fine.

Interesting side note: the OS is identified as "WIN_VISTA"...
For my purposes, this is ok since the relevant files (keyboard drivers in this case) are the same in both Vista and Server 2008.
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