Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Installation process restarts after installation is complete
 

Installation process restarts after installation is complete

Hi

All

I have done with installation where i restore the database to SQL express and it says installation completed successfully and even while installing i have added CustomAction to the SetupProject and it executes when installation is going on and when even after finishing the installation and i am running my software for the first time it executes the same customAction again i am not understaing what to do ??? please do i need to do some thing new stuuf ?? or what should be done please tell me ..

Regards
Avinash
Thanks Avinash Desai
Avinash Desai  Sunday, May 31, 2009 7:58 AM

Hi Avinash Desai,

Please try to click the EXE file of your application to run, does it have any problem? If no problem, I think it is cause by the wrong target of the shortcut. Please read the following article.
http://support.microsoft.com/kb/830612

The Target values of the shortcuts are wrong after you install a Windows Installer package that will cause it cannot find the application and ask a repair etc. To work around this problem, edit the installer package (the .msi file) to change the target value of the shortcut.

Please inform me your test result.

Sincerely,
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Tuesday, June 02, 2009 3:49 AM
Hi

Kira Qian


I deleted the Shortcut and created the new shortcut .. and its working fine as of now .. if any errors in future will post it here again ..

Regards
Avinash
Thanks Avinash Desai
Avinash Desai  Tuesday, June 02, 2009 8:41 AM
Hi Avinash,

Do you mean you want to download Orca editor? I found another link. http://www.technipages.com/download-orca-msi-editor.html
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Tuesday, August 04, 2009 5:18 AM
That kb article has nothing to do with the repair that you are seeing.
1) There will be some MsiInstaller application event log entries that might say something about what component or file is missing.
2) If you want to disable repair on use of shortcuts use Orca to edit the MSI file in the Property table. Add the cases-sensitive property name DISABLEADVTSHORTCUTS and give it a value of 1. If you search this forum for DISABLEADVTSHORTCUTSyou'll see more info about this property.
Phil Wilson
PhilWilson  Monday, August 17, 2009 11:10 PM
any reply to this error or problem?
Thanks Avinash Desai
Avinash Desai  Monday, June 01, 2009 4:15 AM
It'll be a repair. If you remove an installed file or registry item after the install you can see a repair going on with a progress bar. A repair is almost a re-install, and that includes running any of your custom actions. If you need them to run only at install time then add a condition (case-sensitive) of Not Installed to your custom action.
Phil Wilson
PhilWilson  Monday, June 01, 2009 10:41 PM
Hi

Phil W

It installs after a Fresh installation .. I have not even removed any files or did some other stuff just installed and opened the installed file and it starts installing the Custom action i am not able to figure out what is the problem and can u tell me the case sensitive what u told in the above post

Regards
Avinash
Thanks Avinash Desai
Avinash Desai  Tuesday, June 02, 2009 3:24 AM

Hi Avinash Desai,

Please try to click the EXE file of your application to run, does it have any problem? If no problem, I think it is cause by the wrong target of the shortcut. Please read the following article.
http://support.microsoft.com/kb/830612

The Target values of the shortcuts are wrong after you install a Windows Installer package that will cause it cannot find the application and ask a repair etc. To work around this problem, edit the installer package (the .msi file) to change the target value of the shortcut.

Please inform me your test result.

Sincerely,
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Tuesday, June 02, 2009 3:49 AM
Hi

Kira Qian


I deleted the Shortcut and created the new shortcut .. and its working fine as of now .. if any errors in future will post it here again ..

Regards
Avinash
Thanks Avinash Desai
Avinash Desai  Tuesday, June 02, 2009 8:41 AM
Hi

Kira Qian

Now same problem came

So i saw the link what u gave in that there is one download link to download oraca editor ... None of them are installing on Windows XP so please let me know if any other link exists

here the download link goes

http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
Thanks Avinash Desai
Avinash Desai  Tuesday, August 04, 2009 5:05 AM
Hi Avinash,

Do you mean you want to download Orca editor? I found another link. http://www.technipages.com/download-orca-msi-editor.html
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Tuesday, August 04, 2009 5:18 AM
Thanks Kira.. Will work on it ...
Thanks Avinash Desai
Avinash Desai  Tuesday, August 04, 2009 1:06 PM
Hi

Kira Qian

I tried with replacing the Shortcut File location using that Oraca Software as explained in the following example:

http://support.microsoft.com/default.aspx/kb/830612

But Its not Creating Shortcut and not even folder in the start menu? what might be wrong???
Thanks Avinash Desai
Avinash Desai  Monday, August 17, 2009 7:04 AM
That kb article has nothing to do with the repair that you are seeing.
1) There will be some MsiInstaller application event log entries that might say something about what component or file is missing.
2) If you want to disable repair on use of shortcuts use Orca to edit the MSI file in the Property table. Add the cases-sensitive property name DISABLEADVTSHORTCUTS and give it a value of 1. If you search this forum for DISABLEADVTSHORTCUTSyou'll see more info about this property.
Phil Wilson
PhilWilson  Monday, August 17, 2009 11:10 PM
Hi

PhilWilson

May i know how to do it??


I saw this

http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/b57f1d84-9b0c-4c29-b140-0555f92ffed8

But dint understand... after Step No 2...

Thanks Avinash Desai
Avinash Desai  Tuesday, August 18, 2009 8:22 AM
Hi

PhilWilson

I got it done

thanks for the solution it worked

Will post the solution soon here . so that it might help others..


Thanks Avinash Desai
Avinash Desai  Wednesday, August 19, 2009 5:43 AM

You can use google to search for other answers

Custom Search

More Threads

• Changing property values based on condition
• Invoke MSI using Clickonce
• FolderBrowserDialog tree shows once, then goes blank in Custom Action of Deployment Project
• Why would "TestApp1.exe" yield "The name of the application reference identity has invalid characters"?
• How do I force a file to be replaced in New Deployment
• Uninstall with ClickOnce
• How to fill combo box with list of all SQL server
• Moving files during app setup
• Does anyone got this unable to copy setup.exe error?
• How can I build a Microsoft Internet Add-ins?