Sorry for posting this if it has already been addressed but looked thru 101 pages and may have missed it. This is my first post, I believe in looking and trying to solve the problem and not junking up the forum with repeat Q.
Know I am doing/missing something but can not figure out what.
(three days on something this easy is a real waste)
Software: AutoPlay Media Studio 6.
Q: Simply trying to read a registry entry and run the program located in the data value.
REGISTRY:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\MyApp]
"InstallLocation"="D:\\Games\\MyApp\\MyGame.ex e"
CODE: (Placed On Buttons Click Function)
_PLAY_GAME = Registry.GetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\My App","InstallLocation", true);
File.Run("\"_PLAY_GAME\"", "", "", SW_SHOWNORMAL, false);
Dialog.Message("Notice", "play_game is:".._PLAY_GAME);
On Click:
Dialog Message:
Window Title: Notice
Message: play_game is D:\Games\MyApp\MyGame.exe
File.Run does nothing (At All) but DiaLog.Message returns the right value.
Any help would be greatly appreciated.
Thanks in advance.
Lewis Arts
Know I am doing/missing something but can not figure out what.
(three days on something this easy is a real waste)
Software: AutoPlay Media Studio 6.
Q: Simply trying to read a registry entry and run the program located in the data value.
REGISTRY:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\MyApp]
"InstallLocation"="D:\\Games\\MyApp\\MyGame.ex e"
CODE: (Placed On Buttons Click Function)
_PLAY_GAME = Registry.GetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\My App","InstallLocation", true);
File.Run("\"_PLAY_GAME\"", "", "", SW_SHOWNORMAL, false);
Dialog.Message("Notice", "play_game is:".._PLAY_GAME);
On Click:
Dialog Message:
Window Title: Notice
Message: play_game is D:\Games\MyApp\MyGame.exe
File.Run does nothing (At All) but DiaLog.Message returns the right value.
Any help would be greatly appreciated.
Thanks in advance.
Lewis Arts
Comment