/build/static/layout/Breadcrumb_cap_w.png

Custom action to set directory

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

Answers (4)

Posted by: WSPPackager 14 years ago
Senior Purple Belt
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
Posted by: anonymous_9363 14 years ago
Red Belt
0
Why not just change the directory property in the transform by assigning it to a different parent? You are using a transform, right?
Posted by: timmsie 14 years ago
Fourth Degree Brown Belt
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
Posted by: cowley 14 years ago
Orange Belt
0
Doh! Yup i'll change the directory parent, don't know why I didn't think of that in the first place!

Cheers.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ