This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Silently deploy an administrative install in Vista
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 25, 2008
10:49 AM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 18, 2009
12:28 AM
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);
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);