Hello all, and experts
I have been trying to get a seemingly simple task working all day, without success. I've looked at code examples and answers on this forum, but nothing seems to be working for me.
Since I am evaluating SE8 to use for our commercial application installer, this stumbling block is preventing us from moving forward, so any help would be appreciated and get IndigoRose a sale
What I want to achieve
Pretty simple. I am installing an addon for Microsoft Flight Simulator X, and its registry key for the installation path is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\microsoft games\flight simulator\10.0
With a parameter of SetupPath which in this case has the value D:\Program Files\Microsoft Games\Microsoft Flight Simulator X
So this value is what I want to use for the installer's %AppFolder% session variable because our addon gets installed into that folder.
Most other installer tools we've tried have a very straight forward function to retrieve such registry key values and populate the installation path. Not so SE8, which seems to force me to learn coding in order to achieve this simple objective.
What I've tried
Somehow, the Session Variables window has lost its value for %AppFolder%, so it's blank. Not sure if this will cause issues, but from reading the forums here, I should be able to assign a new value to %AppFolder% at runtime.
So in Project | Screens, I have a bunch of screens, including the "Verify Serial Number" screen followed by the "Select Install Folder" Screen.
I tried attaching code to the 'Next>' button of Verify Serial Number to no avail.
I am currently attaching the following code to the [Actions] tab of the 'Select Install Folder' screen:
This results in a blank input window for that screen at runtime.
Question
Please can you enlighten me on how I can provide a value for %AppFolder% which will be passed onto that window and also ensure my addon get installed into that path?
Any answers will be very much appreciated. It really should not have to be so hard, LOL!
I have been trying to get a seemingly simple task working all day, without success. I've looked at code examples and answers on this forum, but nothing seems to be working for me.
Since I am evaluating SE8 to use for our commercial application installer, this stumbling block is preventing us from moving forward, so any help would be appreciated and get IndigoRose a sale
What I want to achieve
Pretty simple. I am installing an addon for Microsoft Flight Simulator X, and its registry key for the installation path is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\microsoft games\flight simulator\10.0
With a parameter of SetupPath which in this case has the value D:\Program Files\Microsoft Games\Microsoft Flight Simulator X
So this value is what I want to use for the installer's %AppFolder% session variable because our addon gets installed into that folder.
Most other installer tools we've tried have a very straight forward function to retrieve such registry key values and populate the installation path. Not so SE8, which seems to force me to learn coding in order to achieve this simple objective.
What I've tried
Somehow, the Session Variables window has lost its value for %AppFolder%, so it's blank. Not sure if this will cause issues, but from reading the forums here, I should be able to assign a new value to %AppFolder% at runtime.
So in Project | Screens, I have a bunch of screens, including the "Verify Serial Number" screen followed by the "Select Install Folder" Screen.
I tried attaching code to the 'Next>' button of Verify Serial Number to no avail.
I am currently attaching the following code to the [Actions] tab of the 'Select Install Folder' screen:
local strProgPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\microsoft games\flight simulator\10.0", "SetupPath");
SessionVar.Set("%AppFolder%", strProgPath);
SessionVar.Set("%AppFolder%", strProgPath);
Question
Please can you enlighten me on how I can provide a value for %AppFolder% which will be passed onto that window and also ensure my addon get installed into that path?
Any answers will be very much appreciated. It really should not have to be so hard, LOL!
Comment