After Deleting File, Installer Is Invoked Upon Program Launch

microcephalic

Member
Joined
Nov 6, 2004
Messages
16
Ive witten a program in VB .Net. The installer copies a file called "dfile.png" to the applications folder during installation. The program then deletes "dfile.png" after the first time it is run.

The problem is that after its deleted, on any subsequent launch of the program, the installer is invoked and the "dfile.png" is re-copied to the applications folder. I dont want it to be re-copied. I just want to delete it after the first time the program is run and not come back. Is there some type of setting or something within my setup program that would fix this? Or is there any other way around this? :o
 
In the setup project check the properties for the file in question and see if the Vital property is true - if so try setting it to false and see if that makes a difference.
 
Solution

Although Im sure my solution is some kind of work around instead of the true solution, which PlausiblyDamp has probably already found, I traced this problem to an advertising shortcut, which checks to see if the installation is intact before running the program. This is set by default and I could not figure out how to change it without using Orca to edit the package after building it. I am sure PlausiblyDamps suggestion to change the Vital attribute is more efficient if it does what you need it to. My previous post which resolved the advertising shortcut was: 76225
 
Thanks, martialarts! I will definitely give your solution a shot. I tried changing the vital setting to false, but to no avail. So, hopefully this will work!
 
Back
Top