Skip to content

Commit

Permalink
Windows: Fix installing in 64bit path
Browse files Browse the repository at this point in the history
The default install location for the 64bit app should be
"C:\Program Files".

Fixes #1792
  • Loading branch information
hluk committed Mar 10, 2024
1 parent 8a7ce2f commit d9e6963
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ On Windows (in PowerShell):

.. code-block:: powershell
& 'C:\Program Files (X86)\CopyQ\copyq.exe' exit
& 'C:\Program Files\CopyQ\copyq.exe' exit
$env:COPYQ_LOG_LEVEL = 'DEBUG'
$env:COPYQ_LOG_FILE = [Environment]::GetFolderPath("MyDocuments") + '\copyq.log'
echo "Logs will be written to $env:COPYQ_LOG_FILE"
& 'C:\Program Files (X86)\CopyQ\copyq.exe'
& 'C:\Program Files\CopyQ\copyq.exe'
How to preserve the order of copied items when copying or pasting multiple items?
---------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/known-issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ console/terminal application (PowerShell or cmd).

.. code-block:: powershell
& 'C:\Program Files (x86)\CopyQ\copyq.exe' help | Write-Output
& 'C:\Program Files\CopyQ\copyq.exe' help | Write-Output
.. seealso::

Expand Down
4 changes: 4 additions & 0 deletions shared/copyq.iss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ UsePreviousLanguage=no

DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}

ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64

AllowNoIcons=yes
LicenseFile={#Source}\LICENSE
OutputDir={#Output}
Expand Down
6 changes: 3 additions & 3 deletions utils/appveyor/after_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ appveyor PushArtifact "$installer" -DeploymentName "CopyQ Setup"

# Test installer
cmd " /c $installer /VERYSILENT /SUPPRESSMSGBOXES"
"C:/Program Files (x86)/CopyQ/copyq.exe" --version
"C:/Program Files/CopyQ/copyq.exe" --version

# Test installer can close the app safely
(
# Wait for CopyQ to start
"C:/Program Files (x86)/CopyQ/copyq.exe" ""
"C:/Program Files/CopyQ/copyq.exe" ""
cmd " /c $installer /VERYSILENT /SUPPRESSMSGBOXES"
echo "Installation finished"
) &
installer_pid=$!
export COPYQ_LOG_LEVEL=DEBUG
"C:/Program Files (x86)/CopyQ/copyq.exe"
"C:/Program Files/CopyQ/copyq.exe"
wait "$installer_pid"

gpgconf --kill all
Expand Down

0 comments on commit d9e6963

Please sign in to comment.