Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Better way to install VFP9+Innosetup application?

Vince Wen

Programmer
Jun 15, 2024
8
HK
I have a VFP9 application that uses Inno Setup as its installer. I am facing a challenge because most of our users install the application on a network server. The issue arises because Inno Setup cannot recognize mapped drives when elevated privileges (admin rights) are required during installation. As a result, users must install the application using the UNC share name.

Unfortunately, many of our users are not technically savvy leading to a constant stream of support calls for assistance with installing the application to the correct UNC share location.

My question is: Is there a better way to handle this situation? I can't be the only one dealing with this issue in a FoxPro application using Inno Setup. I would appreciate any ideas or workarounds that others in the community might have.

Additional Note:
- After the initial installation, the Inno Setup wizard can prepopulate with the previously installed path (the correct UNC share name). However, due to changes in personnel or computers, users often do not use the same computer for updates each year.
- We have a new version released each year which must be installed in the same location each year. Making this a recurring problem.

Thanks in advance,

Vince
 
Well, if you knew what the unc share path was, you could create a cmd file that would map the drive in the administrator context, and then run the installer. It might need to be created for each customer, but then they could run the cmd file As Administrator, and it would work.

You might be able to create a program that would run in the user context and collect the drive mappings, and either store them for the install program, or have it create the cmd "wrapper" that would run in the administrator context, and remap the drives.
 

Part and Inventory Search

Sponsor

Back
Top