cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
repal_rahul
Level 3

CreateProcess doesn't work with IS2011

Hi,

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
Stefan_Krueger
Level 9

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

Hi,

Installscript supports Unicode now. And hence, there are some changes to the datatypes. Please refer to this article for further help -> http://kb.flexerasoftware.com/doc/Helpnet/InstallShield2011/whats_newIS2011.htm.

Thanks!
0 Kudos