replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - How to make the compiled .exe file portable?
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make the compiled .exe file portable?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Little-Acorn



Joined: 06 Jul 2008
Posts: 111
Location: San Diego

PostPosted: Thu Dec 15, 2011 8:22 pm    Post subject: How to make the compiled .exe file portable? Reply with quote

When I compile my program and run it, it runs fine. But when I copy that .exe file to another computer, I get various errors complaining about missing files.

Is there a way to compile my program so that the "missing" files are somehow included, and the program can run on another computer?
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
Location: Yateley, Hants, UK

PostPosted: Thu Dec 15, 2011 10:00 pm    Post subject: Reply with quote

Assuming you compiled in Win32 mode, the other file you need is Salflibc.dll
Whether or not you need anything else, depends on options you made: special fonts, other dll files etc.
Although an EXE will run with Salflibc.dll in the same directory (folder) as the EXE, the conventional place to put it is in \windows\system32. Then you only need one copy for however many EXEs you have dotted around in separate folders.
Just copying the EXE and Salflibc.dll is simple enough, but if you want shortcuts on the desktop or in the Start Menu, then a slightly more elaborate procedure is required. This is to create a self-installing package.
I, and several others here, use a freeware program from Jordan Russell Software called InnoSetup. Using this, you first write a �script� that details all the things you want to set up when you install your program on a new computer. Innosetup then creates a single new EXE file containing in a compressed form all your files, including your EXE and Salflibc.dll. When you run that new EXE file it puts all the parts of your application in the right places, and adds the shortcuts, file associations etc. You can also install help files etc.
One of the really big advantages of InnoSetup is that it creates a single install file, and because it is compressed, it is smaller than the sum of the files that make it up!
On the other hand, it is 99% probable that all you need is Salflibc.dll.
Eddie
Back to top
View user's profile Send private message
Little-Acorn



Joined: 06 Jul 2008
Posts: 111
Location: San Diego

PostPosted: Wed Jan 25, 2012 10:01 pm    Post subject: Reply with quote

Thank you, Eddie! I'll give it a try.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group