Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created deployment procejct which registers COM object. The output file is a setup.msi file. After installation I moved file into other directory. While unistalling app I recived error "the feature you are trying to use is on a network resource that is unavailable" so I must point directory where setup.msi is placed to continue uninstall process. Is there any walkaround of this issue?

I am using Custom Actions in this projects.
I thought that user can remove msi file after installation.
Posted
Updated 26-Nov-11 6:27am
v2

1 solution

This error comes because you moved .msi file into other directory.
When you create any deployment project it will create two files in debuge folder
1 : .msi
2 : .exe
.Exe is the main setup file.because you can install/deploy application by running .exe file.
If you want to move Setup files please ensure that you are moving both .exe and .msi file.Then setup will work properly.

Note : You can deploy application without .msi by running .Exe file.
 
Share this answer
 
v2
Comments
kstxx 26-Nov-11 10:35am    
OK. But why uninstallation will not work if setup files are deleted? It is strange situation when user shoud leave setup files for example on desktop until app is removed... Maybe I should put setup.msi file into specific directory.
Manoj K Bhoir 26-Nov-11 10:42am    
You can uninstall your application through System Control Panel.Or
you can create .bat file to uninstall application.
kstxx 26-Nov-11 10:49am    
Uninstalling through Control Panel is approach I would like to avoid :) I have created bat file, but it is working only when setup.msi file is in place where it was during installation. So as I have written after movig/deleting setup.msi file, uninstallation process will not work - maybe it is connected with custom actions. And this is uninstall.bat file code: start msiexec.exe /x %1
Manoj K Bhoir 26-Nov-11 11:03am    
I think in .bat file you refer name of .msi file to uninstall. You can use Product code insted of .msi reference.and you find the product code into the properties of deployment project. Example : @Echo Off
CLS
C:\WINDOWS\system32\MsiExec.exe /Package {5CC2C972-3912-496F-8FCD-13B92B9130E0} /qf
Exit
kstxx 26-Nov-11 11:14am    
unfortunatelly, your solution is not working. Still after removing instalation package setup.msi uninstalation process is not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900