Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Prevent Installshield 12 from uninstalling files

45 views
Skip to first unread message

phil.c...@gmail.com

unread,
Jul 18, 2008, 10:08:40 AM7/18/08
to
I'm working on an InstallScriptProject. Some of the files i must
install are not in an installshied component but are simply on a
directory on the CDROM. I copy those files at the end of the setup
with the xcopy function. Those files can later be modified by the
user and they must not be uninstalled when the software is
uninstalled. The problem i have is that when i uninstall the software
those files are also installed. Any idea how i can prevent
Installshield from removing these files?

Philippe Charlot

RUS

unread,
Jul 25, 2008, 9:08:40 PM7/25/08
to
Hi Philippe,

All you have to do is disable logging before executing xcopy and then
re-enable it again when you're done copying files.

For example:

Disable(LOGGING);
XCopyFile ("C:\\Test.ini", "C:\\Temp", EXCLUDE_SUBDIR);
Enable(LOGGING);

This way actions performed by XCopyFile will not be logged for
uninstallation.

Good luck,
Ruslan Ulanov

0 new messages