Hi,
i wanted the installation of my program to execute regasm.exe to register a .dll file. the dll file is stored in c:\program files\common files folder.
the syntax of regasm.exe is
regasm /codebase /tlb "c:\program files\common files\drt.dll"
in regasm, the source path of dll file should be in double quotes if it contains any space between characters.
this has created problem for me.
how do i put double quotes in the second parameter in File.run action?
if i change the path of dll to c:\rrr\drt.dll and execute the below code, it works perfectly well.
on post install event, i wrote the following code
result = File.Run(SessionVar.Expand("%AppFolder%\\regasm.ex e"), "/codebase /tlb C:\\rrr\\drt.dll", "", SW_SHOWNORMAL, true);
error = Application.GetLastError();
-- If an error occurred, display the error message.
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
end
this works. but i want to change the path of my dll file to "c:\program files\common files\drt.dll" .
what change shud i do in the above code?
Thanks
i wanted the installation of my program to execute regasm.exe to register a .dll file. the dll file is stored in c:\program files\common files folder.
the syntax of regasm.exe is
regasm /codebase /tlb "c:\program files\common files\drt.dll"
in regasm, the source path of dll file should be in double quotes if it contains any space between characters.
this has created problem for me.
how do i put double quotes in the second parameter in File.run action?
if i change the path of dll to c:\rrr\drt.dll and execute the below code, it works perfectly well.
on post install event, i wrote the following code
result = File.Run(SessionVar.Expand("%AppFolder%\\regasm.ex e"), "/codebase /tlb C:\\rrr\\drt.dll", "", SW_SHOWNORMAL, true);
error = Application.GetLastError();
-- If an error occurred, display the error message.
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
end
this works. but i want to change the path of my dll file to "c:\program files\common files\drt.dll" .
what change shud i do in the above code?
Thanks
Comment