PDA

View Full Version : Running program with commandline parameter



ThysMarais
11-13-2009, 03:06 AM
Being new to SetupBuilder, I still need to learn a lot... I want my install at the end to run an installed EXE with a commandline parameter. It runs the EXE but does not actually pass the commandline parameter.

The following is used:

File Name: IntegratS.exe
Target Folder: %_SB_INSTALLDIR%
Command Line: /IS

As said, the EXE runs, but the parameter is not used. Attached is a screenshot of the Run Program dialog.

How can I get it to use the commandline parameter?

Thanks,
Thys Marais

linder
11-13-2009, 05:35 AM
Thys,

I have developed a demo for you. Please compile and run Run.sb7. It installs an "asInvoker" manifested IntegrateS.exe and executes it non-elevated at the end of the installation process. It passes /IS to IntegrateS.exe and the IntegrateS.exe application displays the received command line.

http://www.lindersoft.com/projects/RunDemo.zip

Does this help?

BTW, I would suggest to download the SB7 Examples Package. It includes an excellent "Learning SetupBuilder Part I". "Everything you ever wanted to know about SetupBuilder but were afraid to ask" introductory materials.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner