PDA

View Full Version : Launching an existing set of files during the install


kram
08-24-2006, 11:46 PM
Hi everyone!

I have been hunting around in the forums for an answer to my problem but havent come accross anything so far.

I have an existing set of setup files(incl dll's a setup.exe and a few others) that install a pocket pc program and synchronisation tool. I want to package these files into one setup file using Setup Factory.

I would like if possible to call upon my own "setup.exe" file from the CD and complete the installation of that set of files on the computer before the rest of the installation completes.

In a sense I do not need to copy my existing distribution files onto the computer - I just need to run them from the CD during the installation.
Alternatively, I could install the files to a temp directory, install them and then delete them before the installation continues.

If anyone can help with a solution and what actions to put where it would be much appreciated (or a better way of doing things even!!)

Thanks

Adam
08-28-2006, 10:26 AM
kram,

The absolute easiest way of accomplishing this is a singe action:

File.Run(_SourceDrive.."\\foldername\\installname.exe", "", "", SW_SHOWNORMAL, true)

Adam Kapilik