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

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
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.
Answered 09/26/2006 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
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.
Answered 09/26/2006 by: AngelD
Red Belt

Please log in to comment
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
Answered 09/27/2006 by: nheim
Tenth Degree Black Belt

Please log in to comment
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
Answered 09/27/2006 by: lelle68
Senior Yellow Belt

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