Sugestion on how to copy a folder to the desktop and then adding text to a bat file within folder

22 views
Skip to first unread message

Daniel Miller

unread,
Oct 28, 2024, 12:19:05 PMOct 28
to innosetup
From the reading that I have done I believe that I can include the folder I want to copy in the files and folders to be installed into where ever the app was installed by the user. But the application I wish to deploy is a console app that is a wrapper for robocpy and 7zip which works off a configuration file.  I would like to copy a folder to the desktop with a logs sub folder, the configuuuration file, and an empty .bat file which then would need to be updated with a text string to launch the application I want.

I BELEIVE that I can do the copy in the [file] section with an additional [code] section for adding the text for executing the app.

I understand that I would have to specify in the [code] that the writting to the bat file would have to occur after installation of everything. But my question is to where the [code] section goes in the inno setup script.

All help appriceated.

Dan
Reply all
Reply to author
Forward
0 new messages