Registering dll's, with asking confirmation to overwrite

Got a problem you cannot solve? Try here.
Naomi
Posts: 7
Joined: Wed Jan 18, 2006 10:57 am

Registering dll's, with asking confirmation to overwrite

Postby Naomi » Thu Jan 26, 2006 7:08 am

I am working on an installation in the Studio version (recently purchased, so I am still new at this).

I need to register some dll's for our application (which is no problem), but... I do not want to simply overwrite already existing files. So I was thinking of making a script that checks for existing versions, compare file versions and then ask (messagebox) if our file should be used or if the existing one should remain. This is just a matter of programming, and should be no problem.

My questions are:
1. Am I overlooking a simpler/easier solution?

2. Is there a way to get a "yes to all" button in a messagebox, so all files can be registered without asking for each seperate file?

Thanks in advance,

Naomi

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Jan 26, 2006 7:16 am

Hi Naomi!

I recommend you do not take this approach. Windows Installer automatically does version checking and will not overwrite DLLs if it determines that the operation will potentially damage the system. In addition, Windows Installer will not overwrite vital system DLLs at all, if it determines they need to be updated by service pack level updates to the operating system. So, you are really safe by letting Windows Installer decide here.

However, if you still wish, you may take your own approach, of course. I'd recommend using the dialog editor to build your own custom dialog that contains a "Yes to All" button and displaying that (for capturing button click events on dialog boxes, see the CD Autorun Template). You can then show this dialog for each file you wish to manually confirm, and overwrite if Yes to All has been chosen.

Again, though, this is not the recommended best practice - the simpler/easier/proper way is to let Windows Installer decide.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Naomi
Posts: 7
Joined: Wed Jan 18, 2006 10:57 am

Postby Naomi » Thu Jan 26, 2006 7:38 am

MichaelNesmith wrote:Windows Installer automatically does version checking and will not overwrite DLLs if it determines that the operation will potentially damage the system. In addition, Windows Installer will not overwrite vital system DLLs at all, if it determines they need to be updated by service pack level updates to the operating system. So, you are really safe by letting Windows Installer decide here.


Just to be sure, this applies for the "Install File" command with the option "File is self registring dll"?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Jan 26, 2006 7:49 am

Yes - actually, applies to all Install File commands.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

Naomi
Posts: 7
Joined: Wed Jan 18, 2006 10:57 am

Postby Naomi » Thu Jan 26, 2006 8:20 am

Okay.

And thanks for your help :)

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Thu Jan 26, 2006 11:15 am

Naomi wrote:Okay.

And thanks for your help :)


If you still don't know how to do it, or you are facing difficulties, i can provide consulting services and help you create your setup, fast and easy, at a very reasonable hourly rate!

Thank you,
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 65 guests