GPO Install Problem - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

GPO Install Problem

Hi,
I have an install that works correctly when installed manually but not when installed by Group policy. The install contains a VB Script that sets a property to one of two values which is then passed via a Property Set with formatted text CA to a merge module. If I examine the windows installer logs I find that for the manual install the relevant properties are shown as being modified, while for the GPO install these properties are shown as deleted. Ultimately the Group policy install ends up installing the product into a folder with the name of the property - which is definitely not what I want!
Any ideas either as to what is going wrong or how I can investigate further would be appreciated.

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: GPO Install Problem

Hi Phil,

Installations deployed through GPO use only InstallExecuteSequence. So make sure that your installation is not affected by its UI. If the problem persists, please send us the .AIP (project) file you are using and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: GPO Install Problem

Thanks, I've mailed you the relevant files.

Regards,

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: GPO Install Problem

Hi Phil,

I noticed that your custom actions are scheduled under "InstallExecuteSequence" -> "Begin". At this stage the installation folders are not resolved, so your custom action most likely works incorrectly. Try moving your actions under "InstallExecuteSequence" -> "CostFinalize". When using full UI the costing is performed before your custom actions by InstallUISequence.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: GPO Install Problem

Hi Cosmin,
Moving the CAs to costfinalise causes the manual install to install in the wrong location as well. The CA in question is based on the example in http://www.advancedinstaller.com/forums ... f=2&t=9689 which requires the action to take place under the Begin standard action. Is it therefore the case that I cannot do what I want for a group policy install?

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: GPO Install Problem

Hi Phil,

The example you mentioned is not really designed for your scenario.

To access APPDIR before costing you can try this:
- go to Table Editor page and select InstallExecuteSequence table
- sort the table rows by their sequence
- modify your custom action sequences to values between 790 and 799, for example 791 and 792
- save the changes and rebuild your project

This way the actions which set APPDIR should run before your custom actions, so your custom property should be set correctly.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: GPO Install Problem

Hi Cosmin,

Thanks for the assistance. My install now works for both manual and group policy based installs.

Phil

Return to “Common Problems”