I am writing an installer for Windows using nsis. This installer contains a web application that runs on top of xampp, so xampp is also installed as a service with this application. But xamp gives a problem when it is installed on a 64-bit machine in Windows 7. This is due to a directory path problem in C: \ Program Files (x86), as mentioned here.
XAMPP Solution? I have it installed on my Windows XP Dual Boot Machine
But at present, the unattended installation path is set by the installer as follows.
C:\Program Files (x86)\myapplication
The installer script has only the following macro to add a directory selection selection page.
!insertmacro MUI_PAGE_DIRECTORY
As a solution, I am going to follow these steps.
- Change the default directory to c: \ Program Files
- If the user selects the x86 folder, an error message is displayed to select a different directory.
To do this, I need to get the path to the installation directory using
$INSTDIR
and
- check if there is an x86 substring with this path
- if it gives error messages.
- Change the default path to c: \ Program Files
Since I am not very familiar with nsis, I cannot write this program.
Can someone help me on this issue?
source
share