Page 1 of 1

Need access to original setup files while uninstalling

Posted: Fri Feb 23, 2007 1:35 pm
by Christoph Schneegans
Hello!

With my setup, some files need to be replaced after compilation. This works very well when I use the "Copy/Move Local Files" command like this:

Code: Select all

...
Copy Local Files $SFXPATH$\\file to $APPDATA$\\$TITLE$\\file
Apply Install
...
However, uninstall fails when the original setup files are no longer accessible. For example, you might have installed from an USB stick and removed the stick, or installed from a network share and disconnected from the network.

When I uninstall with the /l switch, I see the following messages in the log file:

MSI (s) (58:84) [17:47:53:448]: Product: Foo -- Error 1606. Could not access the network address \\\\server\\installfiles\\.

Any hints?

Posted: Sun Feb 25, 2007 10:44 am
by Christoph Schneegans
I've learned from another thread that this problem is due a design limitation of Windows Installer. CopyFileA is the solution.