dheerajjuneja
Posts: 7
Joined: Fri Dec 12, 2008 10:19 pm

Resume as administrator

Dear,

We have an installation which installes:
1. Framework 1.1
2. Framework 3.5 sp2
3. SQL Server 2005 Exp. Sp2
and other components as prerequisite

On Vista machine, we have to enforce that the installation starts as an administrator so we have checked the Launch condition "Run as administrator".

So, the user needs to select "Run as administrator" when he starts installing this product.

While installing the prerequisites, the machine needs to be rebooted multiple times. This is the problem we are facing:
1. How to cut down the number of times the machine needs to be rebooted?
2. How to resume installation after reboot as administrator?

Looking forward to hear from you...

Regards,
Dheeraj Juneja
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Resume as administrator

Hi,
On Vista machine, we have to enforce that the installation starts as an administrator so we have checked the Launch condition "Run as administrator".
So, the user needs to select "Run as administrator" when he starts installing this product.
Please note that you can set the "Require Administrator" execution level for the EXE bootstrapper to make sure that the package runs with Administrator privileges. This way the user doesn't need to use the "Run As Administrator" option.
How to cut down the number of times the machine needs to be rebooted?
The .NET Framework installers use this attribute to disable machine reboots after their installation:

Code: Select all

/norestart
Also, SQL Server Express uses this parameter:

Code: Select all

reboot=ReallySuppress
These parameters can be used in the "Command Line" field from the Properties tab of the "Edit Prerequisite" dialog. The .NET Framework prerequisites can use "/norestart" and SQL Server Express can set "reboot".
How to resume installation after reboot as administrator?
The installation should be resumed automatically, but Advanced Installer has a bug and the feature may not work in some cases. The bug has been fixed in the 7.0 version which is scheduled for release in the near future. Until the release, you can try making sure that the path of the setup file doesn't exceed 256 characters.

Also, if you use the execution level I mentioned, the install process is elevated automatically.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dheerajjuneja
Posts: 7
Joined: Fri Dec 12, 2008 10:19 pm

Re: Resume as administrator

Thanks!

To install some of the perquisite we need windows installer 3.1, that also requires a reboot, is there a similar option to supress reboot for the same as well?

Regards,
Dheeraj Juneja
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Resume as administrator

Hi,

Windows Installer uses the same parameter as .NET Framework:

Code: Select all

/norestart
Please note that it is recommended to perform a reboot after installing Windows Installer. If the reboot is suppressed, Windows Installer may not work correctly.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dheerajjuneja
Posts: 7
Joined: Fri Dec 12, 2008 10:19 pm

Re: Resume as administrator

Thanks,

We are running into another issue now.

After we have set the bootstrapper to "Require Administrator", after reboot Windows Bitdefender blocks the program saying its "not classified".

How can we get away with this?

Regards,
Dheeraj Juneja
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Resume as administrator

Hi,

I'm not sure why you are encountering this behavior. Perhaps the Bitdefender settings are too strict. The installation is resumed after a reboot just like any application is set to run at startup. Perhaps you can find out why this happens and what the message means from the Bitdefender developers.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”