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 );
