Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to make a fiile 'unremovable'?


4 replies to this topic

Peter Bi

Peter Bi
  • Members
  • 68 posts

Posted 28 November 2001 - 01:35

Hi,

The is one file created during installation, I want to set the file 'unremovable' during uninstall or upgrade (the file could be removed if users do that manully). Is there a built-in function to do that?

Note: the file must be writable - a new install (after a uninstall) will need to modify the file.

I am using Dev7 Basic.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 November 2001 - 11:00

Put the file in a separate component and mark it as permanent

Peter Bi

Peter Bi
  • Members
  • 68 posts

Posted 28 November 2001 - 17:48

Thanks, Stefan,

But the file is created during installation (if install finds existing file, it won't create; if not, it will create one). How can I put the file into a component, i.e. to add a component to the project during install time?


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 November 2001 - 19:43

If you don't "install" the file (i.e. it's not in a component) it would not be removed during uninstall.

Peter Bi

Peter Bi
  • Members
  • 68 posts

Posted 28 November 2001 - 19:52

Hi,

Is it possible to use WindowsInstaller Automation Interface or InstallShield's ISWiAutomation interface? If so, which one is better to use? I couldn't see existing methods of adding components to features in WindowsInstallser interface; but if I use ISWiAutomation interface, do I still need to open the project and add a component to it? Is there any way I can add component without opening the project?