How can I put the start application path into the driver...

Black Ice Printer Driver related questions

Moderator: Technical Support Team

How can I put the start application path into the driver...

Postby TechnicalSupportTeam » Tue Mar 30, 2004 12:29 pm

How can I put the start application path into the driver during the install if the user can choose the install directory of the application he is installing?


The printer driver installation will copy the INI files to the hard drive. In the OnFirstUIAfter() Install Shield function you already have the INI files at the target location. At this point, you already know where your exe is located and you have to add this additional information to the INI file. Make sure that you are adding the information to the INI file BEFORE adding the printer driver to the system (before calling AddPrinterDriver() )

//write Start application settings to the INI file
ExeName = TARGETDIR ^ "OutputFileName\\OutputFileName.exe";
INIFile_name = G_DriverDir ^ "\\2\\" ^ @DRIVER_CONFIG_INI;
WriteProfString (INIFile_name, "Default Settings", "ApplicationPath",ExeName );
INIFile_name = G_DriverDir ^ @DRIVER_CONFIG_INI;
WriteProfString (INIFile_name, "Default Settings", "ApplicationPath",ExeName );
TechnicalSupportTeam
 
Posts: 944
Joined: Sat Mar 20, 2004 11:50 am

Return to Printer Drivers



Who is online

Users browsing this forum: Google [Bot] and 1 guest