Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / April 2005

Tip: Looking for answers? Try searching our database.

Prevent Windows Installer file repair

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Guido Kraus - 28 Apr 2005 11:04 GMT
Hi,

I use VS.NET 2003 to create an MSI setup. The setup installs an application
and a data file called 'demo.dat'. However, the user might delete this file
'demo.dat' after some period of time. When the user restarts the application
Windows Installer detects the missing 'demo.dat' file and starts a file
repair. Since the user intentionally deleted 'demo.dat' I would like to
prevent such a file repair.

Is it possible to install some file without the Windows Installer
permanently watching it?

Thanks for your ideas,
Guido
Gary Chang[MSFT] - 29 Apr 2005 07:41 GMT
Hi Guido,

>Is it possible to install some file without the Windows Installer
>permanently watching it?

If you want to prevent an installer component from being repaired, you can:

1. Do not give it a GUID in your installer package, this will prevent the
installer component from being registered with Windows Installer, so it
won't be repaired.

or

2. Create an unadvertised shortcut to the targeting installer component,
you need to specify the property identifier which enclosed by square
brackets in the Target column of the Shortcut table and set the
corresponding DISABLEADVTSHORTCUTS property to disable the generation of
shortcuts supporting advertisement.

For detailed information about it, you can refer to MSI SDK documentation
for the Target column in the Shortcut table and the DISABLEADVTSHORTCUTS
property:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/s
hortcut_table.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/d
isableadvtshortcuts.asp

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.