I am trying to write a Inno Setup script to install files from a CD drive to a predefined system C drive folder. Naturally, the CD/DVD ROM may have a different path ID on different systems. How do I code this variable path for the Source Files?
Inno Setup install script from CD/DVD drive (variable path)
731 Views Asked by Harry Unruh At
1
There are 1 best solutions below
Related Questions in PATH
- How to write a clickable link in VS Code terminal that points to a multiline range?
- Can't run Python's mapscript because of a missing DLL
- How change path to my new generated webp image in index.html?
- Correct way to compare file paths when one is canonical and other absolute
- make Error 2, The system cannot find the file specified
- Tkinter treeview displaying and selecting rows question
- Running clang64.exe or mingw64.exe incorrectly sets PATH
- Python project deployment on Ubuntu 18 server
- FileNotFoundError while trying to load dataset from drive
- Powershell Receive-File issue
- BlendMode does not work as expected with a path and circle in Jetpack Compose
- return all paths in a nested dictionary that also contains a list in python
- How to show and change Image inside a Flask Route?
- What is vue router :matchRest(.*)* and when should I use it?
- Cassandra Installation Issue on Windows 11- 64bit
Related Questions in INNO-SETUP
- InnoSetup error 193 after install Mysql Connector
- How to install an app with default admin privileges via Inno Tool (or some other setup tool)?
- Using Inno Setup LoadStringFromFile always gives "Type mismatch"
- PowerShell Start-Process infinite execution of installer
- Problem with icon when changing language in inno setup
- How can I add exclusion and redistributables in Inno Setup?
- Create adapted desktop icon when installing files into a user selected directory
- Install two files into a user selected directory
- Change installed application's name
- unable to start windows service after registering for start node server using inno setup script
- Copy files to several destinations read from registry using Inno Setup
- Service with DependsOn is not being set correctly in Inno Setup via CreateService function
- How can I create a txt file with Inno Setup?
- Check a checkbox in Inno Setup installer from another application using C++
- Disable MongoDB logging with flag on MsiExecWithFlags?
Related Questions in CDDVD
- MediaTypes of CD/DVD in registry
- Need to read the file modification/creation date & time of UDF file system
- How can I detect if CDRom is a DVD on Linux
- c# create media at runtime
- Controlling DVD Drive using Python
- creating simple DVD structure?
- Powershell event when CD burn starts from file explorer
- Uwamp Mysql Server from CD stops running after 5 seconds
- Node.js write a CD/DVD api?
- Inno Setup install script from CD/DVD drive (variable path)
- OSX-Mounting DVD programmatically does not launch user specified application
- Upload field point to CD/DVD ROM instead of HDD [PHP]
- Getting the CD/DVD drive letter when using a SaveFileDialog (burning with IMAPI2)
- Reading and Writing to a DVD/CD - Java
- Eject and Close CD/DVD Devices IN C#
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Assuming your installer is located along with the files you are going to install, you can use the
{src}constant to refer to installer's folder along with theexternalflag:If your installer is located elsewhere, there's no generic solution. Note that there may be even more CD/DVD drives on the computer.
You would have to programmatically enumerate all drives, testing for their type (CD/DVD) and presence of certain files for example.