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.
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)
Please log in to answer
Posted by:
WSPPackager
14 years ago
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
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
Posted by:
timmsie
14 years ago
Posted by:
cowley
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.