Small Fix Install
Posted 24 August 2002 - 03:51
We are using InstallShield for packaging and delivering and implementing the software onto production environment. Our application contains more than 200Mb of data...we normally do a full install always to be clean and safe...Process has been working great !!
Now we have 'urgent' requests and we make 'very minor changes' in the application...These requests would normally need an 'urgent' install also...We donot have the luxury of packaging/uninstalling/installin the complete software....I know there is an upgrade option..but even that takes some time!!
Is there a solution through which say I should be able to package/uninstall/install in the quickest time? Normally development for such minor and critical fixes take only less than 10 mins...I would not want spending hours for packaging, uninstalling and installing the whole 200MB...Appreciate any quickest solution...Can afford to take some risks also!!
Posted 24 August 2002 - 04:10
Batch files are one idea, but of course one shortcoming is you can't read/write registry entries.
IMHO a more complete, but still quick solution is to create a very basic & generic setup project which relies on uncompressed files. That way you can just swap out the data files and not have to recompile the install. You can then package it up in whatever manner you see fit--zip, self-extracting EXE, PFTW, etc. The code for such a project would either rely on your usual setup components or it would just replicate the directory structure & files at the original installation location.
As for uninstalling, would it be feasible to just rely upon the one from your full install? 'cause if so, that would certainly help simplify things. Otherwise you'll need to backup the patched files, so that the original installation will return to its original state after uninstalling a patch.
I could say a lot more on this subject, but I think this will do for now. Hope it helps. Let me know of if you have any specific questions about my suggestions.
Posted 26 August 2002 - 06:29
You write the entries to be written as a .reg file and call it in your batch with regedit. Use option key /s for silent behaviour:
regedit /s YourRegFile.reg
This way you can not only write subkeys and entries/values but even delete them by using a "-".
(to delete the default value, use: @=- )
To delete a whole subkey instead of an entry, use:
Though you cannot read registry keys/values, at least you are able to write or delete them.
Posted 28 August 2002 - 03:46
True, there is that way of writing to the registry, but all that really is in an import which means everything's hard coded. However, I wasn't aware of the delete capabilities, so thanks for bringing that to my attention.
Also, for a patch install, IMHO, reading is very important. For how else is one supposed to know say the installation directory--short of asking the user or forcing the user to run from a specific location.
Posted 05 November 2003 - 16:40
CAn you please explain more about the delete Registry key as I have to delete whole bunch of entries from the registry key.
Posted 06 November 2003 - 01:32
To do the latter though, just open/create a REG file and add a dash in front of the registry path to indicate its removal. Here's a quick example
This will then delete the registry key HKEY_CURRENT_USER\Software\Patchou\MsgPlus2.