/build/static/layout/Breadcrumb_cap_w.png

Movefile

Hi all,
I’m new to what I see as more advanced msi/mst options and hoping for some help regarding movefile in msi tables. I’m trying to make a silent install/upgrade of Lotus Notes from 6.0.2 to 6.5.3 and then I noticed the Movefile table and thought I could use this to move useful files like bookmarks.nsf and so forth. I’m using Installsheild tuner to do the install files, my questions is
How does movefile work?
What are the components -s72 field used for, what option should I pick there?
Can I use wildcards to pick files?
I there a better way to do this (except bat files)?
I have checked the helpfile MSsdk help but didn’t understand much about the components part, maybe it’s because of my poor English or I’m might be just plain stupid.

Best regards and thanks in advanced
Lennart Johansson

0 Comments   [ + ] Show comments

Answers (4)

Posted by: aogilmor 17 years ago
9th Degree Black Belt
0
Lennart, you ain't stupid, this can be pretty hard to understand if you're new to it.

Basically it doesn't matter what component you use, as long as you're sure it'll be installed with your app (if it is not, then the movefile won't work)

SourceName
This column contains the localizable name of the source files to be moved or copied. This column may be left blank. See the description of the SourceFolder column. This field must contain a long file name and may contain wildcard characters (* and ?).

SourceFolder
This column contains the name of a property having a value that resolves to the full path to the source directory. If the SourceName column is left blank, then the property named in the SourceFolder column is assumed to contain the full path to the source file itself (including the file name).

So SourceFolder would be something like this, [ProgramFilesFolder]notes\
and SourceName would be * if you wanted to move all the files. You could also use *.nsf or list different types or files in separate rows.

Tools like Wise can come in handy with things like this.
Posted by: AngelD 17 years ago
Red Belt
0
Have in mind that files moved using the MoveFile table will not get removed on uninstallation so you will have to handle these with a custom action instead.
Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi Lennart,
please have a look at 'duplicatefile' also. I use it quite often to install files which have to go to the users profile.
Advantages over 'movefile' are, that they get removed automatically when you uninstall and you can use the original file as often as you have to.
Regards, Nick
Posted by: lelle68 17 years ago
Senior Yellow Belt
0
Hi all,

Thanks a lot for all your replies, haven´t been able to try them yet, when it comes to duplictefiles, is that only duplicate of the install files? In this case I want to move old files from one location to another.
But all tips are very welcome, im learning alot of new things

Cheers

Lennart
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