Uninstall problem in Installscript MSI project.
Posted 29 June 2006 - 16:03
i am facing one problem while uninstallation the product.
After successfully installation of product, If I change the computer name (Network identification) then I am facing the problem while uninstalling the product. In fact I am unable to remove the product form that host machine.
Can anybody tell me why it is so? Is there any dependency on hostname?
Any help regarding this problem is highly appreciated.
Posted 07 August 2006 - 12:24
I am installing some component using the network path (\\hostname\sharename). so while removing the product, windows installer validate individual components installation path. So after changing hostname, the path validation failed at beginning of the uninstallation. This results in fatal error and aborts the uninstallation process.
I have to install those component files in network share folder. Because of this I am using network path while installation. Now my client doesn’t want this hostname dependency ... so how can I fix this?
is there any method stop logging of windows installer while installing any perticular component.
Any other method with which we can install the files and make available across the network.
Please help me...
Posted 07 August 2006 - 16:03
To do it just for some files you should install them explicitly between a Disable and Enable.
Something like this (it is not nice but it works)
nRez= XCopyFile ("your net full path\\XXX.yyy", "",COMP_NORMAL|LOCKEDFILE);
szMsg = “ErrCopying” +" XXX.yyy ";
MessageBox (szMsg, WARNING);
If you are talking components/features in between Enable Disable should be the moving functions.
Anyhow take care to remove this files at uninstall because it will not be done automatically (since are not in the log).
If you have more questions, ask!
Posted 08 August 2006 - 07:33
Thanks for the help. Actually I was aware of the method you have suggested. One thing I have to mention that the file copying is done by windows installer. I mean I have just mentioned the target path for each component. Rest of the thing windows installer handled. So in short no script has been used while copying these components files.
I want to know how we can stop logging while copying these components.
Second way I could see here is that use xcopy function as you suggested for copying those files. But the files are in .CAB (zipped) file. Is there any way to read .CAB files and copy them to target system using xcopy function? . In that case the solution you have suggested is absolutely fit.
Please let me know if you have some idea about this.
Thanks in advance
Posted 08 August 2006 - 11:07
The usual way to move and install components/features is FeatureMoveData. So this call for the offending components should be put in-between Disable and Enable.