|
-
Feb 19th, 2008, 12:07 PM
#1
Thread Starter
Hyperactive Member
.NET 2005 - Setup & Deployment project
Hi,
I created a Setup & Deploy project for a VB.NET 2005 application I have.
The installer works, my application is installed correctly.
My problem is regarding the shortcuts the installer creates. The part "User's Desktop" and "User's Program Menu" in the S&D project.
In those two sections, I created a Shortcut to my application. The problem I have is that after the installation, when I click on the shortcuts, It kind of reinstall stuff.
EXPLANATION:
When my application is installed, in the application folder it installs a file named "Init.flag". This file is deleted the first time I start my application.
But If I restart my application using the shortcuts, I see for about 1-2 sec a progress bar .. and my "Init.flag" file is recreated in the application folder as if the installation was reexecuted.
If I manually create a shortcut, this does not occur and it all works. But I do not want my users to manually create a shortcut. I want them to use the ones the installer creates.
The ShortsCuts created by the installer seems to quickly execute something before lauching my application and that causes me headaches.
--
I do not know if its clear ... or if anyone ever had this problem too.
Thanks for helping.
-
Feb 19th, 2008, 01:19 PM
#2
Re: .NET 2005 - Setup & Deployment project
Moved to Application Deployment
-
Feb 19th, 2008, 01:26 PM
#3
Re: .NET 2005 - Setup & Deployment project
You need to turn your logic around, instead of having the installer copy the file (that the application deletes) you should have your application check to see if the file's there or not, if it's not there then it's a "first run" if it is there then the program's been run 1 or more times.
By having the application delete the file, when you use a shortcut created by the installer, it first checks to see that all the installed files are still present, if it's not, it extracts them. This is why you have turn your logic around.
-
Feb 19th, 2008, 02:31 PM
#4
Thread Starter
Hyperactive Member
Re: .NET 2005 - Setup & Deployment project
Thank you !
Great answer. I reversed my logic and it works fine now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|