Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • 2 weeks later...
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...