Se7en
03-15-2006, 08:12 AM
Hi,
My goal is to put the Setup log, in the user non-roaming application data folder.
E.g.:
C:\Documents and Settings\John\Local Settings\Application Data\YourProduct
However, I couldn't find a session variable for this folder.
There is one for the roaming profile:
%ApplicationDataFolder%
Which is : C:\Documents and Settings\John\Application Data\YourProduct
But I need the one with the "Local Settings".
I can get this folder by using
Shell.GetFolder(28)
28 is not documented in the help of setup factory, but it works since anyway this parameter is passed to Windows' shell API - "SHGetFolderPath".
The problem is when I initialize the custom session variable, in action "on startup", the log file was already created, so it's too late.
Any suggestions ?
Thanks for any help.
My goal is to put the Setup log, in the user non-roaming application data folder.
E.g.:
C:\Documents and Settings\John\Local Settings\Application Data\YourProduct
However, I couldn't find a session variable for this folder.
There is one for the roaming profile:
%ApplicationDataFolder%
Which is : C:\Documents and Settings\John\Application Data\YourProduct
But I need the one with the "Local Settings".
I can get this folder by using
Shell.GetFolder(28)
28 is not documented in the help of setup factory, but it works since anyway this parameter is passed to Windows' shell API - "SHGetFolderPath".
The problem is when I initialize the custom session variable, in action "on startup", the log file was already created, so it's too late.
Any suggestions ?
Thanks for any help.