Hi AI forums,
I have managed to create a very basic installer for my app which performs the following very basic tasks:
1. Copies some dlls to the APPDIR (ie. as nominated by the user but with suggested default as very standard)
2. Writes a registry key to prevent the macro warning coming up on the MS Access runtime
3. registers the dlls using regsvr32 by running a bat file in a "custom action"
The bat file contains the following:
md "C:\Program Files (x86)\Dubel Systems\Dubel32\"
cd "C:\Program Files (x86)\Dubel Systems\Dubel32\"
regsvr32 /s .\exg2antt.dll
regsvr32 /s .\ExPrint.dll
regsvr32 /s .\ExSchedule.dll
Calling regsvr32 is the only way I know how to register the dlls. I guess I could do without the "md" line, but I need either the "cd" line (or alternatively just using the full path with regsvr32) as the only way I know to reference the directory they are in.
So my problem is this: if the user decides to change the default directory during the installation process, my calls to regsvr32 will fail because they will not have been copied there. Is there a way to reference the path the user ACTUALLY chooses in the bat, or maybe can I register the dlls another way that doesn't rely on this clunky batch file custom action? Thanks for reading!
FOLLOW US
Get the latest news in Application Packaging