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

Silently deploy an administrative install in Vista

Hi All,

Our current setup works fine in XP/Windows 2003 systems both from the setup.exe and via an administrative install.

Administrators can create a batch file to deploy it silently rather easily.

In Vista, if you have the ability to "Run As Administrator" via the right-click on the exe (be it the setup.exe or msiexec.exe) you can install without issue.

However, I'm having a hard time figuring out how to create a batch file that will allow our clients to deploy a silent install with "Run As Administrator" rights for a Vista machine.

So, is there a way via a batch file that one can install either the setup.exe or an administrative install (MSI) silently with "Run As Administrator" rights?

Any help here would be greatly appreciated.

Thanks,
Tom
Labels (1)
0 Kudos
(1) Reply
n_idza5577
Level 3

try this one:

SdShowMsg ("Registering system files", TRUE);
szApp = "cmd.exe";
Sprintf( szCmdLine, "/c \"%s\" /min", SRCDIR ^ "Register.bat" );
nRes = LaunchAppAndWait( szApp, szCmdLine, LAAW_OPTION_HIDDEN );
MessageBox ("szCmdLine="+szCmdLine+"", INFORMATION);
if ( nRes < 0 ) then
// Address the error
endif;
Delay(1);
SdShowMsg ("Registering system files", FALSE);
0 Kudos