Running Install As System Account (for SCCM )
Posted: Wed Apr 27, 2016 1:20 pm
Hello,
I am working on resolving an issue one of my clients has with my InstallAware install when they tried to push the install via SCCM as the System account. They need to use the System account as their users do not have permissions to install software. The client is installing the software silently.
We can test this scenario using SysInternals PSTools utility PSExec.exe to run a cmd.exe prompt as the System account and run the install from that cmd prompt.
My first problem was the Destination dialog in the Aero theme using a Shell control. This was resolved by removing the shell control and using a Browse button similar to the Official dialog scheme. This seemed to work until I rebuild the install and got strange error message dialogs.
This one is very short but I have had some that list a whole lot more:
This is a longer one, and I had one where the entire dialog box was a jumble of unicode\Chinese characters.
I started to troubleshoot and when I call the following system calls I get unreliable results; I don't know yet if I'll find others. Note that the square brackets around the SHORTCUTFILES value are put there by me.
Get Folder Location System->Desktop Directory into DESKTOPDIR
Get Folder Location Start Menu->Programs Group into SHORTCUTFILES
A Message box displayed after I get all these variables in my code shows the following:
What do I need to do to get the proper results returned when installing under the System account?
Thanks,
Sheri
I am working on resolving an issue one of my clients has with my InstallAware install when they tried to push the install via SCCM as the System account. They need to use the System account as their users do not have permissions to install software. The client is installing the software silently.
We can test this scenario using SysInternals PSTools utility PSExec.exe to run a cmd.exe prompt as the System account and run the install from that cmd prompt.
My first problem was the Destination dialog in the Aero theme using a Shell control. This was resolved by removing the shell control and using a Browse button similar to the Official dialog scheme. This seemed to work until I rebuild the install and got strange error message dialogs.
This one is very short but I have had some that list a whole lot more:
This is a longer one, and I had one where the entire dialog box was a jumble of unicode\Chinese characters.
I started to troubleshoot and when I call the following system calls I get unreliable results; I don't know yet if I'll find others. Note that the square brackets around the SHORTCUTFILES value are put there by me.
Get Folder Location System->Desktop Directory into DESKTOPDIR
Get Folder Location Start Menu->Programs Group into SHORTCUTFILES
A Message box displayed after I get all these variables in my code shows the following:
What do I need to do to get the proper results returned when installing under the System account?
Thanks,
Sheri