microcephalic Posted December 13, 2004 Posted December 13, 2004 I've witten a program in VB .Net. The installer copies a file called "dfile.png" to the application's folder during installation. The program then deletes "dfile.png" after the first time it is run. The problem is that after it's deleted, on any subsequent launch of the program, the installer is invoked and the "dfile.png" is re-copied to the application's folder. I don't 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 Quote
Administrators PlausiblyDamp Posted December 13, 2004 Administrators Posted December 13, 2004 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
martialarts Posted December 21, 2004 Posted December 21, 2004 Solution Although I'm 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 PlausiblyDamp's 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 Quote
microcephalic Posted December 23, 2004 Author Posted December 23, 2004 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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.