Announcement
Collapse
No announcement yet.
Confirm folder exist from registry
Collapse
X
-
Now that this works i can make sure customers do not install to desktop and repack my work. But the new issue is the uninstall create a xml file that lists all the files and location. My low budget install wrapper does a better job and create a full exe as it should. Why is it creating this file? I would like to not have this option but still need a uninstall. Please advice.
-
-
Thanks for pushing me with a tip rather than writing the code for me. I learned how to concatenate strings by reading the sample Bo + Derek = Bo Derek. That was what i needed since VB uses a + symbol. I also realized i already have my packages set to find the users program location based on the registry and so it already has a session variable that is set on startup. So i can use the session variable as Bo and my folder as Derek and it worked. There was an example that included a message for yes and no if folder exists. So tested with that and ended with my working code below. Thanks Ulrich.
Code:-- Check to see if a specific folder exists. does_exist = Folder.DoesExist("%FSXFiles%".. "SimObjects2"); -- Jump to screen if folder does not exist. if does_exist == false then Screen.Jump("Wrong Location"); else
Leave a comment:
-
-
I advise you to take the time to read the Lua scripting guide. You are confusing quote delimited string with function names, and attempting to concatenate strings using incorrect operators. You need to do a bit of learning on your own first.
Ulrich
-
👍 1
Leave a comment:
-
-
Confirm folder exist from registry
I want to check for a folder from the registry. This codes works using the default location.
Code:tmp_exist = Folder.DoesExist("C:\\Program Files (x86)\\Microsoft Games\\Microsoft Flight Simulator X\\SimObjects") if tmp_exist == false then Screen.Jump("Wrong Location"); else
Code:tmp_exist = Folder.DoesExist("Registry.GetValue(HKEY_CURRENT_USER, "Software\Microsoft\Microsoft Games\Flight Simulator\10.0", "AppPath", true) + \SimObjects")) if tmp_exist == false then Screen.Jump("Wrong Location"); else
Tags: None
-
Leave a comment: