To run a file by operating system I wrote the following code :
resultOS = System.GetOSName();
if (resultOS == "Windows 7") then
result = Shell.Execute(SessionVar.Expand("%AppFolder%\\myFi le.exe"), "open", "/q /norestart", "", SW_HIDE, false);
end
But the file does not exist yet because we have not copied it yet. and I want to run it before I start copying all the files. How can I access it and run it from the installation package? And not from %AppFolder% ???
resultOS = System.GetOSName();
if (resultOS == "Windows 7") then
result = Shell.Execute(SessionVar.Expand("%AppFolder%\\myFi le.exe"), "open", "/q /norestart", "", SW_HIDE, false);
end
But the file does not exist yet because we have not copied it yet. and I want to run it before I start copying all the files. How can I access it and run it from the installation package? And not from %AppFolder% ???
Comment