Visual Studio Installer patches
Posted 21 March 2004 - 05:59
I am using Visual Studio and VB6, and have used Visual Studio Installer 6.0 to create a .msi package for my install.
I am now trying to create a 'patch' to fix some problems with my application, but for the life of me... I cannot figure out how to do it.
I've read here that I need to create 2 .msi files (orignal and new) and then the 'patch' project will create me a .msp patch file??
But I cant figure out how to do that part...
Sorry for sounding stupid... I guess it must be obvious?
Thanks for any help,
Posted 22 March 2004 - 22:42
The alternative is not to build a patch but instead let the new version replace the old version. There's a setting somewhere in VS for automatically removing the old version. You have to change the ProdutCode GUID for this to work.
Posted 28 March 2004 - 00:57
Thanks for clearing that up for me,
Now I understand... a bit more.
I've managed to change the product code, and new versions are now installed, but I dont seem to be able to find the setting to make it remove the old version before installing the new one.
I think it might have something to do with the Upgrade code. If you keep that the same accross all versions it is supposed to uninstall the old version first... But is does not seem to do the uninstall.
Any more ideas?
Also, is there any way to 'control' the product code, because what happens if I pick a code that some other developer/coder has picked for thier package and they are both installed onto a machine???
Posted 29 March 2004 - 09:03
The ProductCode is a GUID that you generate similar to the CLSIDs for COM objects. The GUID generating algorithm is supposed to generate Globally Unique Identifiers (hence the name GUID) with a very high probability. As far as I know it used date and time as well as information about your computer (such as the IS of your network card) to make sure duplicate GUIDs don't happen.
Posted 29 March 2004 - 11:38
OK, I feel like I'm being very stupid here... cause I cant find that field.
Is it because I'm not using VB.NET???
I'm using VB6 and Microsoft Development Environment 6.0 to build my .msi
I've attached a screen dump of my project, in the "installer builder" app, to show what I am using.
Do I need to get the .NET version of MDE for this to work?? And will that cope with my project being a VB6 app?
Good to here about the GUID,
Thanks for the help,
Posted 30 March 2004 - 08:23
Posted 30 March 2004 - 10:45
However, if I right click that line and select 'Properties' I get the form I attached below, which does not have the field you suggested on, even in the tabs.
Should I upgrade MS Dev Env from 6.0... to the .NET version???
Can that version cope with a VB6 project, or whould I have to convert my whole project to VB.NET?
Posted 31 March 2004 - 12:21
Thanks for all your help anyway,
I read somewhere on the net that Microsoft were puzzeled as to why not many people have picked up using MS installs and .msi (as they had thought)
I think with this sort of 'usablility' I can figure out why