During Installation I am writing drive letter ({drive:src}) of source into {app}/userinfo.ini and {localappdata}/userinfo.ini files, which is working fine in WinXP and Vista but not in Win7 and Win8. In {app}/userinfo.ini it is always writing "C:" if the source is a mapped drive and in {localappdata}/UserInfo.ini it is writing full network path of the source. I read that the privileges are different for Win7 and Win8 users. Then how to get the mapped drive letter in this case.
Inno Setup - {drive:src} is not returning mapped drive letter in Win7 and Win8
1.2k views Asked by Shashibhushan At
1
There are 1 answers
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 NETWORK-DRIVE
- Exe file missing icons/images on Network Drive
- I want to save a file to a network hard drive from a Docker Compose, running on a Linux MiniPC
- SQL Server Agent Job doesn't work for shared drive
- Automatically connect to network drives after connecting to VPN
- VBA: Reduce time to check if network drive is available
- Neo4j Desktop installation error "App initialization error Error: EISDIR"
- Python watchdog module on a mapped network drive directory and subdirecotry events
- Upload file to mapped network drive from symfony application
- C# StreamWriter with using-block inside a while loop intermittently fails on slow network drive
- How to access network drive for dropping a file during automation run using Jenkins
- Getting semi-sporadic Access Denied using mapped network share over ssh managed jenkins agent
- PermissionError Access denied
- How to disable "Network" in Explorer via registry key?
- Ansible: mapping network drive issues
- Using PowerShell to Run a Script that installs some files from a mapped drive
Related Questions in MAPPED-DRIVE
- How to make `os.path.isdir()` work for mapped network drives?
- How would I provide access to my Windows V:\ drive in a docker-compose.yml file?
- Using PowerShell 5.1 on Windows 10, I successfully map a drive, but it doesn't when running by Scheduled Task
- A Scheduled Task to transfer one LARGE file from one mapped drive to another failed but worked when file split into 3 separate files
- How to evaluate all LogicalDisk instances in a machine excluding mapped network drives?
- wmic - don't work when runs from Task Scheulder (`No Instance(s) Available.` @ win10 )
- Why Inno Setup installer doesn't handle correctly network drive?
- Error: The system cannot find the drive specified (while accessing a mapped drive remotely) using winrs
- Powershell - removing subfolder recursively in a mapped drive getting error Illegal characters in path
- Does running a jupyter notebook on a mapped network drive make it run slower?
- Deleting files on a mapped drive using c# and IIS
- My file is not being created in the mapped drive when I try to create it using progress 4gl
- UNC path is Replaced by Mapped Drive
- How to save/write file over mapped network in PHP?
- How do I run a cmd command without admin rights from an elevated application?
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?
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)
You cannot get the mapped drive letter, as the installer runs as an administrator and the drive mappings are different between admin and non-admin levels (even if you think it's the same user -- and it isn't always).
When elevating from regular to admin, Inno automatically translates mapped drive letters to the "real" UNC path, as it would not be able to run at all if it tried to use the letter. Thus
{src}will always be a UNC path, and{drive:src}will be the root share name.You shouldn't be trying to save this information in an admin installation anyway, as different users may have different mappings. You will either need to make your application figure this out itself (and save it in the per-user settings) or you will need to make a per-user installation instead.