RunProgram retuns only 0 or 2
Posted: Wed Jun 06, 2012 6:36 am
I need to create a Local Usergroup on my system during install.
The commandprompt is : c:\NET LOCALGROUP MososUsers /ADD /COMMENT:"MososUsers"
This works fine.
And you can see in the dos-box a errorcode if anything went wrong.
This returncode is excalty what I need in IA.
So I put it in the RunProgram box as shown below:
Unfortuanally The only returnvalues I receive is 0 (assumes success) or 2 if anything went wrong, but not knowing what went wrong.
I need the errrocode so I can deside it the setup can continue or if it should quit.
In case the usergrou existst, everything is oke, but if any other error occurs i need to terminate or do something else.
please advice
Ton
The commandprompt is : c:\NET LOCALGROUP MososUsers /ADD /COMMENT:"MososUsers"
This works fine.
And you can see in the dos-box a errorcode if anything went wrong.
This returncode is excalty what I need in IA.
So I put it in the RunProgram box as shown below:
Code: Select all
~InstallAware Clipboard Data~
~Run Program~
~{245DBE97-0969-4845-8330-0097F723C570}~
~NET~
~FALSE~
~LOCALGROUP MososUsers /ADD /COMMENT:"MososUsers" /DOMAIN~
~TRUE~
~NETGROUP~
I need the errrocode so I can deside it the setup can continue or if it should quit.
In case the usergrou existst, everything is oke, but if any other error occurs i need to terminate or do something else.
please advice
Ton