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!

bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

MSI - GPO

Hi

I have 32-64 Mixed Exe. Now we wanted to deploy it through GPO.

I have used "http://www.advancedinstaller.com/user-g ... o-msi.html" to get the exe. T
he settings are so that it shall register with windows installer but it shall not display the MSI details in Control Panel - Add or Remove List.

So, for the first time when we run the MSI it is working fine and installing the EXE file.

Now I diretely uninstlled the EXE from AddorRemove list, Then I tryed to run the MSI again. This time My EXE is not installed.

If I do "misexec.exe /x installer.MSi", the MSI is uninstalled and now when i run the installer.MSI ,its invoking the .Exe file.

How to handle this problem?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI - GPO

Hello,

In order to achieve what you want you should disable the "Register product with Windows Installer" option from "Product Details" page for your MSI package.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: MSI - GPO

Hi :

As u mentioned in http://www.advancedinstaller.com/forums ... =2&t=23018

"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.""

My requrment is to support GPO. Is dar any other way ???

One More Dout:

In Order to over come the above problem, I have registered the MSI details and displayed the MSI in the ADD/Remove program.
So now Ill be seeing two Products in my AddRemove [myproduct.EXE] and [MyPackager.MSI]

I have given the settings In MSI as shown the Pic attached:

When I uninstall MSI , it is triggering EXE and this behaviour is 5n.
But When I first uninatall EXE and Then UnInstall MSI, MSI is againg invoking My EXE for installation. Which is not correct.
How to Handle this. ????
Attachments
ScreenHunter_01 Apr. 04 12.57.gif
ScreenHunter_01 Apr. 04 12.57.gif (64.2 KiB) Viewed 13170 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI - GPO

Hello,
As u mentioned in viewtopic.php?f=2&t=23018

"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.""

My requrment is to support GPO. Is dar any other way ???
I apologize because I was not aware about this limitation imposed by GPO deployment. I'm afraid that in order to achieve what you want you should manually uninstall the MSI package (e.g. from command line) and, then install it again.
When I uninstall MSI , it is triggering EXE and this behaviour is 5n.
But When I first uninatall EXE and Then UnInstall MSI, MSI is againg invoking My EXE for installation. Which is not correct.
How to Handle this. ????
I'm afraid this is the normal behavior. The EXE will always be launched with the uninstall command lines (in your case with no command line switches) when its MSI wrapper will be uninstalled (even if the EXE was already uninstalled).

So, if no command line parameters are specified the MSI will simply launch the prerequisite installer. Thus, it is recommended to use an uninstall command line parameters (in the "Uninstall using this command line" filed) for your EXE package. If you EXE package is created using Advanced Installer, then you can use a "/x //" uninstall command line.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: MSI - GPO

Hi ,

1) When I try to Push the installer from GPO without registring the MSI, the installtion is popping up the error "Fatal error during installation". When I register, I am able to install. Is this due the GPO limitation???

2) When I followed the "http://www.advancedinstaller.com/user-g ... o-msi.html"
The Exe is been added in prereqisite - > postInstallation. So Even if Exe installation is failed, MSI is installed in the machine. Is dar a way to rollback the MSI installtion if the EXE is not installed or error out ????


2) My EXE is developed using mixed 32/64 AI package which contains windows servics .The installation for resterited user is failling when its pushes using GPO.
So when we install servics, the installation will not work for NonAdmin ? I tryed differnt MSI but was able to install for NonAdmin user..
As we are invoking Exe from MSI, my pakage is not installed ??? How to make my MSI pakage to work for non admin users????
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI - GPO

Hello,
1) When I try to Push the installer from GPO without registring the MSI, the installtion is popping up the error "Fatal error during installation". When I register, I am able to install. Is this due the GPO limitation???
Yes, this is a possible cause.
2) When I followed the "http://www.advancedinstaller.com/user-g ... o-msi.html
The Exe is been added in prereqisite - > postInstallation. So Even if Exe installation is failed, MSI is installed in the machine. Is dar a way to rollback the MSI installtion if the EXE is not installed or error out ????
I'm afraid you cannot achieve this.
2) My EXE is developed using mixed 32/64 AI package which contains windows servics .The installation for resterited user is failling when its pushes using GPO.
So when we install servics, the installation will not work for NonAdmin ? I tryed differnt MSI but was able to install for NonAdmin user..
As we are invoking Exe from MSI, my pakage is not installed ??? How to make my MSI pakage to work for non admin users????
If you EXE package is created with Advanced Installer, then you can open its project and enable the "Run as administrator" option from "Install Parameters" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: MSI - GPO

Ya RunAsAdmin is enabled . Please c The settings of My Exe from the bellow Pic.
We are installing Windows Servics so we have selected the option : Per Machine Only (Fails if user is not Admin)
Is this creating the problem for Non Admin Users??? how to handle this???
Attachments
ScreenHunter_01 Apr. 09 08.18.gif
ScreenHunter_01 Apr. 09 08.18.gif (5.13 KiB) Viewed 13145 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI - GPO

Hello,

I'm not sure why this happens. Can you try to manually install the related EXE on a non admin user account and see if the installation succeed. If so, can you please send us a verbose log of the installation through GPO to support at advancedinstaller dot com so we can investigate?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: MSI - GPO

Hi Daniel

I have few parameters that can be passed as input param. And When I convert the exe to msi using "http://www.advancedinstaller.com/user-g ... o-msi.html" how can i set the parameter to EXE via MSI ???


My Sample : Installer.exe WORKING_DIR = "C:\product\"
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI - GPO

Hello,

In order to achieve this you can use public installer properties to set the related EXE parameters.

For example, you can use a property (e.g. WORKING_DIR_PROP) within your MSI to pass its value to an EXE parameter. Just go to "Prerequisites" page, select your EXE package and in the "Setup Files tab -> Install Command Lines" section set the command lines fields like this:

Code: Select all

WORKING_DIR=[WORKING_DIR_PROP]
Then, you can run the MSI package from command line (and set a property from command line) like this:

Code: Select all

msiexec /i setup.msi WORKING_DIR_PROP="C:\product\"
If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: MSI - GPO

When I set its value from the command line, its value is overriden in the Install Exceution Stage.
Because Its Scheduling Options is set to "Skip action in Install stage if executed in dialog stage".

I want to load default values to this if no value is given from commad line

How to over come this problem,
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI - GPO

Hello,
When I set its value from the command line, its value is overriden in the Install Exceution Stage.
Because Its Scheduling Options is set to "Skip action in Install stage if executed in dialog stage".
I'm afraid I don't fully understand your scenario. Can you please give us more details about this (maybe exemplify)?
I want to load default values to this if no value is given from commad line
In order to achieve this you can add your "WORKING_DIR_PROP" property in "Install Parameters" page -> "Properties" section like this:
  • Name: WORKING_DIR_PROP
    Value: default value
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”