heat.exe file <your_dll> -gg -nologo -out <your_wxs>

Substitute <your_dll> with your DLL filename & <your_wxs> with something
you like (I tend to use the name of the DLL or OCX but with .wxs
instead).

That should generate you a Fragment with the DLL in a File tag & all the
registration which DllRegisterServer would do. Make sure you check there
are no explicit paths & if there are, replace them with Properties (e.g.
[#mydll.dll] for the full long path of your DLL after it is installed
etc). Also make sure to update the DirectoryRef to point at the
Directory where you want the file installed.
No need to declare the File anywhere else or worry about uninstall, this
is your one-stop-shop.

Cheers,

Palbinder Sandher 
Software Deployment and IT Administrator 

T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 
http://www.iesve.com 

**Design, Simulate + Innovate with the <Virtual Environment>**

Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP

Email Disclaimer




-----Original Message-----
From: Chris Lord [mailto:[EMAIL PROTECTED] 
Sent: 23 October 2008 16:26
To: wix-users
Subject: [WiX-users] Register a DLL

Hello,
 
I have a single DLL driver file driver for some hardware I need to be
able to install.  For testing I have been manually registering and
unregistering the DLL using RegSvr32.  I now need to automate the
installation so I'll need to install the file and register it.  And when
I uninstall it, unregister it.  While I can write the install/uninstall
part of the installation easily enough, how do I go about registering
and unregistering the DLL.
 
Thanks

Chris Lord

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to