Showing results for 
Search instead for 
Did you mean: 

CreateProcess doesn't work with IS2011


We have migreted project to Install shield 2011 from Install shield 12.

We observed that with install shield 2011 below function fails,
Kernel32.CreateProcess(NULL, szCmdLine, NULL, NULL, FALSE, 16, NULL, NULL, &StartupInfo, &ProcessInfo)

szCmdLine = "C:\Documents and Settings\Rahul\Desktop\redist\dotnetfx2.0.exe"/q:a /c:"install.exe/qb"

This is existing working function of install shield 12.

This function is written in setup.rul(script file) called by install shield.

Does any body know about this, why Kernel32.CreateProcess() is not working with Install shield 2011. is there any problem with szCmdLine?

Labels (1)
0 Kudos
2 Replies
Occasional contributor

Re: CreateProcess doesn't work with IS2011

You can use LaunchApplication() instead which now has many more options, including a switch to use CreateProcess or ShellExecute
Stefan Krueger
0 Kudos
Flexera Alpesh

Re: CreateProcess doesn't work with IS2011


Installscript supports Unicode now. And hence, there are some changes to the datatypes. Please refer to this article for further help ->

0 Kudos