danfloun,
Why do you tell SUF70 that example.ini is a shared system file? [Set to false]
You should use the result variable feature and test the result.
Absynthe has already told that you must use the build-in variable (or expand the session variable). You can never use a session variable as a regular variable.
It's a good idea to add some error handling
Code:
bInstalled = File.Install(SessionVar.Expand("%TempLaunchFolder%\\example.ini"),
_WindowsFolder.."\\example.ini", FILE_INSTALL_ALWAYS, false, false);
nError = Application.GetLastError();
if nError~= 0 then
-- some kind of error has occurred!
Dialog.Message("Error "..nError, "File install error: ".._tblErrorMessages[nError]);
end
if bInstalled then
Dialog.Message("", "Yes, installed");
else
Dialog.Message("", "No, not installed");
end
There seems to be a bug when you set CreateBackup = true!