/build/static/layout/Breadcrumb_cap_w.png

Set Directory

I wud like to know how to move directory while installing
from c:\pf\Lotus\notes
to c:\pf\lotusnotes

0 Comments   [ + ] Show comments

Answers (4)

Posted by: brenthunter2005 19 years ago
Fifth Degree Brown Belt
0
Hello,

All you need to do is create a Custom Action, with a Type value of 35.

Set the 'Source' column to the directory key (from the Directory table) you want to change (ie: 'notes' ?)

And the set the 'Target' column to the actual directory you want (ie: 'c:\pf\lotusnotes' )
Posted by: brenthunter2005 19 years ago
Fifth Degree Brown Belt
0
Actually, I don't think I understand 100%.

My previous comment was to set/change the old directory ('c:\pf\lotus\notes') to the new directory ('c:\pf\lotusnotes')

Are you actually asking how to rename/move a folder while installing a MSI package?
Posted by: skj 19 years ago
Second Degree Brown Belt
0
Move a folder while installing
Posted by: brenthunter2005 19 years ago
Fifth Degree Brown Belt
0
[8D]

OK, then. You need to use the MoveFile table.

The following example may help you:

MoveFile Table:
FileKey column = key1
Component_ column = component_name
SourceName column = *
DestName column = *
SourceFolder = notes (referenced from the Directory table)
DestFolder = lotusnotes (again, referenced from the Directory table)
Options = 1 (1 = Move, 0 = Copy)


Just as another point too, if you ever need to do anything in MSI's and don't know how to, always consult the Windows Installer SDK documentation. Its the best source of information and it has always helped me! [;)]
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