Jump to content

Recommended Posts

Posted

Hi all,

 

I have an MSI that I can install via Group Policy however there is a separate configuration file that needs to be deployed with it into the installation folder in C:\Program Files\Name of Software\Settings folder.

 

At the moment I have the software and the settings file in the same GPO, the problem is that the settings file creates the folder path which in turn makes the software fail to install because the software path already exists (if that makes sense, the software thinks it's already installed).

 

Is it possible to have the software install first and then the settings file be copied over afterwards? If s how might I go about doing that?

 

Thank you for your help!

Posted
Set it so that it installs the settings file only if it sees the folder structure in place. I'm assuming you're using Group Policy Preferences to add the file? Under Common - Item Level targeting you can set a file match, then, under match type, select "folder exists" and add the path of the folder.
Posted

Use a group policy preference:

 

Copy your config file to a network share somewhere. NETLOGON is probably a good one.

 

Open the GPO, go to Computer Configuration, Preferences, Windows Settings, Files. Right click, then go to New then File. In source files, choose the file in the share. In destination file, put the path of where the file is going.

 

To make sure that the file doesn't go on until after the MSI is installed, go to the Common tab, check Item Level Targeting and press the Targeting button. Click New Item then go to MSI Query. Click the "..." button then choose your package. You will need to make sure that the package is installed on the workstation that you're editing the GPO from.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...