Distribution / OCX / COM |
Post Reply |
Author | |
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
Posted: 07 May 2006 at 9:58am |
Question for the group...
How are you all handling distribution / installation of your OCX files?
Because... I'm limited to one machine right now for all tasks - including development / testing / debugging / web surfing / idle procrastination / etc... When I test my install, the uninstall feature completely removes all references to the Codejock OCX files from the registry - effectly removing them from the dev environment as well (Visual Studio 2003 / 2005) Ok - so let's say I work a little smarter and tell InstallShield to not remove the registry entries during uninstall... what's to say that my app is the only one using Codejock on the target machine? It may be my imagination, but I'm seeing A LOT of apps lately that scream "Codejock". Granted - the big guys use the MFC code rather than the COM stuff... but what happens when an uninstall occurs with an app other than mine? Should I worry that, at any moment, the entire gui framework that my app is built on might disappear into thin air? No, no, no... I must be doing something wrong. Right? Regards ~ jp |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
1) Uninstall should not silently remove components which could be "shared" like Codejock. Components should be whether left as is, or uninstall would specifically ask user about explicit removing of the component. 2) To avoid problems when someone else removed a shared component which you may need (like Codejock ;), add a piece of code on the application start to check whether all components exist and properly accessible. If not, just ask a user to reinstall your application. -- WBR, Serge |
|
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
|
Hi Serge -
Thanks for the response. Are there any "best practice" approaches for suggestion #2? Cheers ~ jp |
|
I like mathematics because it is not human and has nothing particular
to do with this planet or with the whole accidental universe — because, like Spinoza's God, it won't love us in return. |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
For #2 -- depends on your programming language, but generally you call CreateObject(TheComponent) or so, inside a try/catch block. If it is failed, then no sense to continue and you can fire a corresponding message.
-- WBR, Serge |
|
RobinG
Groupie Joined: 07 May 2006 Location: United Kingdom Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Bit late replying on this thread - by why not use something like Virtual PC for you test enviroment? Or even Virtual Server seeing as Microsoft have made this a free download..... |
|
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
|
I wasn't even aware of this product. Thanks for pointing it out Robin!
Cheers ~ jp |
|
I like mathematics because it is not human and has nothing particular
to do with this planet or with the whole accidental universe — because, like Spinoza's God, it won't love us in return. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |