Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Installer running automatically when Click shortcut of application
 

Installer running automatically when Click shortcut of application

H,

After installing my application when I click the shortcut of the application the installer running automatically. But i f I click the .exe from application folder (Installation folder) program starts normally. Is there any wrong with the setup creation?

Thanks in Advance,
Jayahar
D.R.Jayahar Devadhason  Tuesday, May 05, 2009 7:04 AM
See this thread:
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/00c577c4-e841-4258-a566-72058c3c8c4b
and if you've removed any files or registry entries as I mentioned above, this is normal. Search this forum for DISABLEADVTSHORTCUTS.
Phil Wilson
PhilWilson  Friday, July 31, 2009 8:58 PM
Hi Jayahar,

Could you please help me to clarify your issue more? What kind of applicationdid you install?
It could be thecause that the shortcut doesn't point to the exe file.

Thanks
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen  Wednesday, May 06, 2009 9:37 AM
Hi,

I have an application which is developed in VS 2008 (C#). I have added all the needed dll's, files and exe in application folder. Also added a folder in User's Programs menu and added the shortcut of exe (Target is pointing the exe available in Application folder).FinallyI build the deployment project and made .msi. I am able to install the installer. After installingif I doubleclick the .exe located in application folder (Installation folder) application starts normally. If I click the shortcut of the applicationthe installer running automatically and reinstalled the application after installation completes application starts. It is happening for first time only. The second time if I click the shortcut it is working fine. Could you get it? Please help me for this.

Thanks in Advance,
Jayahar
D.R.Jayahar Devadhason  Wednesday, May 06, 2009 11:36 AM
Hi Jayahar,

I am moving this thread from Base "Visual Studio Setup and Installation" forum to the "ClickOnce and Setup & Deployment Projects" forum, since the issue is related to deployment. There are more deployment experts in the "ClickOnce and Setup & Deployment Projects" forum.

Thanks
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen  Thursday, May 07, 2009 3:26 AM
Thank you Chen! Can any one help me?
D.R.Jayahar Devadhason  Thursday, May 07, 2009 4:55 AM
It's doing a repair. Have you removed files that you've installed? Or installed with one account and you're using it from another account? Or installed shared files improperly maybe?
The application event log should have some MsiInstaller entries with details.
Phil Wilson
PhilWilson  Thursday, May 07, 2009 5:48 PM
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Tuesday, May 12, 2009 2:42 AM
Can you any one help on this issue?

Thanks in Advance,
Jayahar
D.R.Jayahar Devadhason  Friday, July 31, 2009 5:53 AM
Are you using a setup & deployment package, or ClickOnce deployment (the publish tab in Visual Studio) ?

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Friday, July 31, 2009 9:00 AM
Using setup & deployment package.
D.R.Jayahar Devadhason  Friday, July 31, 2009 12:41 PM
I'm experiencing something very similar except when logging in as a standard user, the attempted installation/repair fails.

Nevertheless, the application can launch from the program files folder.
-Paul
pauldb  Friday, July 31, 2009 2:43 PM
See this thread:
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/00c577c4-e841-4258-a566-72058c3c8c4b
and if you've removed any files or registry entries as I mentioned above, this is normal. Search this forum for DISABLEADVTSHORTCUTS.
Phil Wilson
PhilWilson  Friday, July 31, 2009 8:58 PM
Thanks Phil! I have solved this issue with the use of "WiRunSQL.vbs" script file. I have added this file in Project output path and added the below comment in PostBuild property of my Deployment project.

cscript //nologo "$(ProjectDir)WiRunSql.vbs" "$(BuiltOuputPath)" "INSERT INTO Property(Property, Value) VALUES ('DISABLEADVTSHORTCUTS', '1')"

Thank you once again!
D.R.Jayahar Devadhason  Tuesday, August 04, 2009 5:24 AM

You can use google to search for other answers

Custom Search

More Threads

• Code Groups: What am I doing wrong?
• Trouble Deploying ClickOnce PNG Resources
• Registry free COM
• Change Installation URL after the application has shipped
• cc.net and msbuild
• publishversion vs productversion
• SQLExpress can't attach Database using ClickOnce
• Boostrapper for Net1.1. application and trust
• The whole application updates with every publish
• help with publish