Hi,

This is probably quite an easy one for you experienced packagers/scriptors but I thought I'd drop a post anyway as I'm getting myself in a bit of a pickle.

Here's what I want to do;

My package, a Vendor MSI installs a file to the following directory; My Documents\My Policies,
My documents is on the homedrive of the account the software is installed for as we do user based installs via GPO here.

I basically want to redirect this My Policies folder to the INSTALLDIR, which is Program Files\App Name.

Obviously there are 2 ways I believe I can achieve the redirection via type 35 or type 51 CA's. Ideally I want to set the directory before the create folder action is executed, is this possible? The reason I ask is because my business user accounts are unable to set the directory at user GPO/advertised install execution, so Ideally I want this directory to be set before the create folders CA is run, is this possible?

Thanks in advance.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Why not just change the directory property in the transform by assigning it to a different parent? You are using a transform, right?
Answered 12/22/2009 by: VBScab
Red Belt

Please log in to comment
0
Why not just change the Component that installs the file to install to INSTALLDIR
i.e change the Directory value in the Component table
Answered 12/22/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
Doh! Yup i'll change the directory parent, don't know why I didn't think of that in the first place!

Cheers.
Answered 12/22/2009 by: cowley
Orange Belt

Please log in to comment
1
Create a Custom Action in Execute Immediate.
This should be After Set Property ARPINSTALLLOCATION
Select the Set Directory
Custom Action Name : CA_Set_INSTALLDIR
Directory : INSTALLDIR
Directory Value : [ProgramFiles]AppName
The line should look like as below...
Set Directory INSTALLDIR to [ProgramFiles]AppName (CA_Set_INSTALLDIR)
Thanks
Answered 12/22/2009 by: WSPPackager
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity