Cannot install through GPO when not registered with WI - 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!

gregoryg
Posts: 13
Joined: Wed Dec 05, 2012 6:13 pm

Cannot install through GPO when not registered with WI

When I'm trying to deploy a package through GPO while "Register product with Windows Intaller" has not been selected, I'm getting the following error from MSI on the client machine:
=== Verbose logging started: 12/5/2012 19:17:20 Build type: SHIP UNICODE 5.00.7601.00 Calling process: C:\Windows\system32\svchost.exe ===
MSI (c) (C0:D4) [19:17:20:704]: User policy value 'DisableRollback' is 0
MSI (c) (C0:D4) [19:17:20:704]: Machine policy value 'DisableRollback' is 0
1: 2905 2: C:\Windows\system32\appmgmt\MACHINE\{11829f28-e2e7-4525-8ce8-47b56ea536db}.aas
MSI (c) (C0:D4) [19:17:20:719]: DoAdvertiseScript is returning: 1603
=== Verbose logging stopped: 12/5/2012 19:17:20 ===


The installation works fine if I toggle on "Register product with Windows Installer". Any ideas on how this problem may be addressed?

Thanks
Giga
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot install through GPO when not registered with WI

Hello Giga and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Please keep in mind this is the normal behavior. An MSI installation package needs to be registered with Windows Installer in order to be deployed through GPO. If you do not register your product with Windows Installer, then you will not be able to deploy it through GPO.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gregoryg
Posts: 13
Joined: Wed Dec 05, 2012 6:13 pm

Re: Cannot install through GPO when not registered with WI

Hello Daniel,

Thank you for responding.

We're trying to create exe-to-msi wrapper and deploy it via GPO using technique similar to the one described in http://www.advancedinstaller.com/user-g ... o-msi.html document. The way it is presented, we end up with two entries in "Programs and Features": MSI and EXE.

Is there a recommended approach on how to avoid this duality and allow for GPO deployment of the resulting packages?

Thank you
Giga
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot install through GPO when not registered with WI

Hello Giga,

In order to achieve what you want you can disable the "Show MSI information in Program and Features (Add or Remove Programs) applet in Control Panel" option or you can enable the "Do not show in list" option from "Product Details" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gregoryg
Posts: 13
Joined: Wed Dec 05, 2012 6:13 pm

Re: Cannot install through GPO when not registered with WI

Hello Daniel,

So, if there's a hidden MSI installation and a visible 7-Zip installation, the uninstall procedure for these two should be connected in a way that removing one package would remove the other:
- If MSI is removed using GPO, it should trigger 7-Zip uninstall
- If 7-Zip is removed from Control Panel, it should clean up the MSI package

To implement this, I was thinking to have MSI update UninstallString registry value of 7-Zip to be similar to the one generated by the MSI installer. This would effectively cause MSI uninstall invocation when 7-Zip uninstall is attempted from Control Panel. MSI uninstall procedure should implement a custom script removing 7-Zip package.

Does this workflow make sense? Any pitfalls in the proposal that you can see?

Thank you
Giga
gregoryg
Posts: 13
Joined: Wed Dec 05, 2012 6:13 pm

Re: Cannot install through GPO when not registered with WI

Hello Daniel,

I've tried to deploy the package via GPO and I could not make it run 7-Zip installation. When I run msiexec from command line in quite mode, it works fine. However, GPO deployment does not seem to run 7-Zip which is added as post-install prerequisite. In summary, I cannot make GPO deployment work when an MSI is created using instruction from http://www.advancedinstaller.com/user-g ... o-msi.html. Any idea of what I may be doing wrong?

Thank you
Giga
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot install through GPO when not registered with WI

Hello Giga,
- If MSI is removed using GPO, it should trigger 7-Zip uninstall
In order to achieve this you can set an uninstall command line in the "Prerequisites -> Setup Files -> Maintenance Command Lines" group.
- If 7-Zip is removed from Control Panel, it should clean up the MSI package
I'm afraid you cannot achieve this.
I've tried to deploy the package via GPO and I could not make it run 7-Zip installation. When I run msiexec from command line in quite mode, it works fine. However, GPO deployment does not seem to run 7-Zip which is added as post-install prerequisite. In summary, I cannot make GPO deployment work when an MSI is created using instruction from http://www.advancedinstaller.com/user-g ... o-msi.html. Any idea of what I may be doing wrong?
This may happens if you have not enabled "Limit to basic user interface (simple progress and error handling) option from "Install Parameters" page. So, can you enable the "Limit to basic user interface" option and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gregoryg
Posts: 13
Joined: Wed Dec 05, 2012 6:13 pm

Re: Cannot install through GPO when not registered with WI

Hello Daniel,

I made sure "Limit to basic user interface" was enabled in the MSI project settings, but GPO deployment still does not work. I'm able to install the package in quiet mode using msiexec without a problem, but GPO only installs the wrapper, not 7-Zip. To make is "really" quiet, I had to specify "/S" installation option for 7-Zip.

I'm attaching the project file I'm using together with MSI log file. It looks like the prerequisite is simply not run. Any ideas?

Thank you
Giga
Attachments
MSI7ccf.LOG
(177.87 KiB) Downloaded 632 times
setup.aip
(15.44 KiB) Downloaded 932 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot install through GPO when not registered with WI

Hello Giga,

Please keep in mind that you should run the related EXE post-install prerequisite package using a silent command line. So, can you set a silent command line parameter (e.g. /S) in the "Basic UI" field, from "Prerequisites -> Setup Files -> Install Command Lines" group, and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gregoryg
Posts: 13
Joined: Wed Dec 05, 2012 6:13 pm

Re: Cannot install through GPO when not registered with WI

Hello Daniel,

I've tried your suggestion, but it did not help: I got the wrapper installed, but not 7-Zip. As far as I understand, GPO installation invokes the installer with /qn option, which is equivalent to Silent installation type without any UI. I've already had /S option specified for it.

You should be able to reproduce this behavior using the project file I attached to one of my previous posts. It seems that there may be a problem with how AI runs prerequisites when invoked through GPO.

Thank you
Giga
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot install through GPO when not registered with WI

Hello Giga,

I'm not sure why this happened. Also, if you are running your main MSI in silent mode (e.g. using /quiet or /qn command line parameters), then you should also set the /S command line parameters in the "Silent (No UI)" field from "Prerequisites -> Setup Files -> Install Command Lines" group.
You should be able to reproduce this behavior using the project file I attached to one of my previous posts. It seems that there may be a problem with how AI runs prerequisites when invoked through GPO.
Please give us some time to investigate this and we'll get back to you as soon as we have a conclusive answer.

Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gregoryg
Posts: 13
Joined: Wed Dec 05, 2012 6:13 pm

Re: Cannot install through GPO when not registered with WI

Hello Daniel,

Thank you for investigating the problem. I'll be waiting for your response.
Just FYI, it's holding up my evaluation of AI...

Giga
gregoryg
Posts: 13
Joined: Wed Dec 05, 2012 6:13 pm

Re: Cannot install through GPO when not registered with WI

Hello Daniel,

While you're looking at the problem, is there a different technique for starting exe files embedded into MSI? I could try adding an exe as a temporary file and then executing it in a custom VB script. However, I was wondering if there's a better option to do it?

Thank you for your help,
Giga
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot install through GPO when not registered with WI

Hello Giga,

In order to achieve this you can proceed like this:
- Add the related EXE file (e.g. 7z920.exe) in "Files and Folders" page.
- Go to "Custom Actions" page and add a "Launch installed file" custom action with sequence, scheduled after "Install Execution Stage -> Finish Execution -> InstallExecute" custom action, like this:
  • Source Path: APPDIR\7z920.exe
    Command: /S
    Execution Options: Deferred with no impersonation
    Execution Stage Condition: Install
- Build and run your project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”