Hobbyist Posted January 4, 2018 Posted January 4, 2018 Hi I hope this is the right place to ask this question, as it involves using Inno installer for my compiled Autoit script. So I take a simple DirMove ( "source dir", "dest dir") and make an executable with a complete source and destination designation. I include this exe with my other Autoit compiled script and run it through Inno to make my setup. That all works fine. When setting up Inno to generate setup, I use the [Run/Uninstall] (indicating my exe noted above) which according to Inno will, at uninstall time run my executable and when completed will continue with the uninstall. That is what I am seeking. What happens is no folders are moved, only files. Now if I run my DirMove exe by itself, everything performs as expected so I think that is right. Searching the internet for help has not yielded much for me as I have no clue about Pascal etc and it also has been suggested that it is an Autoit issue (which I don't see how). This is my first exposure to using an installer so I plead ignorant of the subject. But am seeking some direction or something to help me learn what to do. Thanks. Hobbyist
careca Posted January 5, 2018 Posted January 5, 2018 Essencially, this can be resumed as: The exe runs as expected if you run it yourself, but when run through another application, it only moves the files, not the dir. Can you test if the behaviour is the same when ran through a batch file for example? Can you test it with #requireadmin ? When you say only the files are moved, where are they moved? That seems odd, do they move from the subfolders to one specific folder? All together in only one folder? Earthshine 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Hobbyist Posted January 6, 2018 Author Posted January 6, 2018 Thank you for taking time to look at my issue. If I run the exe thru a batch file, it copies the entire directory as indicated in the exe. This is the expected result. This is the same as if I clicked the exe in the original directory. The exe is just the DirCopy or DirMove (I tried both). Simply just: local $what = DirCopy ( "c:\A Test File", "L:\A Trial Run",1 ) ;L is my backup HD ;check success 0 = no , 1 = yes MsgBox($MB_ICONINFORMATION, "Notice Results", "Copy or no Copy ." &$what ) It works as a stand alone, but I was looking to have it execute during the uninstall process. Using Inno, the compile setup creates the original directory, subdirectories and includes files. That works as expected. Within the original directory(noted above), I include the exe (copy). Inno has the availability : [UninstallRun] Filename: "{app}\A Budget Test Copy.exe" ;Parameters: "/x" ; A Budget Test Copy is the name of the exe This is suppose to "run" before uninstall and then continue with uninstall. It runs and copies everything but not ANY folders, just files and even the exe. So the installer has the folder info. Making a setup is new to me, as is Inno. And I have no clue about any Pascal coding, so I am at a complete disadvantage and even more perplexed about the behavior and WHY. Any help in solving or directing me is appreciated. (hope I have communicated the above clearly) Hobbyist
AdamUL Posted January 10, 2018 Posted January 10, 2018 I think this may be a permission issue with the way it is being run by Inno. Try the following UninstallRun, and see if it helps. [UninstallRun] Filename: "{app}\A Budget Test Copy.exe"; Parameters: "/x"; WorkingDir: "{app}"; Flags: runascurrentuser ; A Budget Test Copy is the name of the exe Adam
Hobbyist Posted January 11, 2018 Author Posted January 11, 2018 AdamUL Thanks for taking time to respond to my issue. I tried your suggestion, but the results were the same - everything copies but NOT folders. So I looked into the Inno Wizard Tools and while there is an option to run Uninstall as Admin, the documentation later states that Admin is the default in [Setup]. I thought I perhaps overlooked something. I use the Wizard because I am absolutely no hard coding Pascal expert. Hobbyist
Hobbyist Posted January 11, 2018 Author Posted January 11, 2018 I have just found that my Autoit exe functions as expected if I use Actual Installer rather than Inno, so I know, as before, the exe was fine and correctly worked to copy everything including the folder. As suspected, it is within Inno. Both Inno and Actual Installer have the option to exe something during the "uninstall" process. And both options are within using their wizards. Any way, I had thought some folks in the forum might use Inno and have had the same issue and also understand it probably is not a "real" Autoit issue. But thanks for reading my issue and suggestions. Guess I will convert to Actual Installer going forward.
Earthshine Posted January 12, 2018 Posted January 12, 2018 (edited) does inno make msi installers? you can use custom actions based on conditions usually http://www.jrsoftware.org/ishelp/index.php?topic=scriptinstall Edited January 12, 2018 by Earthshine My resources are limited. You must ask the right questions
careca Posted June 8, 2018 Posted June 8, 2018 Nice necro. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now