PDA

View Full Version : Call LaunchAppAndWait after reboot



jagadish0911
07-07-2014, 09:16 AM
Hello There,

Is there any way to call LaunchAppAndWait after rebooting system.

here is the sample code:
if ( FindAllFiles ( WindowsFolder ^ "Microsoft.NET" ^ "Framework", "regasm.exe", svResult, RESET ) == 0 ) then
svPath = INSTALLDIR ^ "xxx" ^ "xxx"^ "obj.dll /codebase /tlb";
MessageBox("svpath : "+svPath,INFORMATION);
LongPathToQuote ( svPath, TRUE );
if (LaunchAppAndWait ( svResult, svPath, WAIT ) < 0) then
MessageBox (" Unable to launch " + svPath + ".", SEVERE);
endif;
endif;

I wanted to generate tlb file for a .NET dll. How it is prossible?
Please suggest.

NOTE: I do not want to use "RunOnce" as the dll file resides in INSTALLDIR. I cant hardcode the dll path in a batch file.
Thanks in advance,

//Jag