I used Inno to build a setup.exe for a VB6 program to be installed on a Win7 machine. Application has 4 exe's and a collection of auxilliary txt files, and one OCX.
Inno.iss script flags: "ignoreversion" on all except for MSFLEXGRID.OCX which is flagged "restartreplace sharedfile regserver".
The setup.exe generated by Inno was used to install this application on the C drive of a Win7 machine.
Development files are on an external "E" hard drive. There are several versions of the aux files there. The correct ones (listed in the Inno script) successively installed on C drive. I know because I looked at them.
Here is the VB6 code to access one of those aux files:
sFileName = "DataBars.txt"
sFilePath = App.Path & "\" & sFileName
MsgBox sFilePath, vbOKOnly
Open sFilePath For Input As #1
I put that MsgBox there (temporarily) so I could actually see the path:
C:\Program Files (x86)\PoolSandS\DataBars.txt
Now here comes the mystery: When I run this installed app, it opens one of the other DataBars files on the E drive!
If I unplug the USB from the E drive, the program bombs because it cannot find the file it is looking for.
What is going on here? Why is it not opening the file specified in sFilePath? Please help.
I had built this setup.exe with "Advanced", but that was a limited one-time download. It seemed to work fine, but I don't want to spend $300 for it.
If it helps: I took a look at the registry with CCleaner. Got two reports:
Problem: Installer Reference Issue
Data: C:\Program Files (x86)\SDPL\PoolSandS
Registry Key: HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\Folders
User: All users
Problem: Missing MUI Reference
Data: C:\Program Files (x86)\SDPL\PoolSandS.exe
Registry Key: HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache