Inno Setup DefaultDirName에 문제가 있습니다. 내 코드는 다음과 같습니다.Inno 설치 DefaultDirName 문제
#define MyAppName "My Program"
#define MyAppVersion "1.0"
#define MyAppPublisher "My site"
#define MyAppURL "mysite.net"
#define MyAppExeName "My Program.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{36D5C912-2F45-4295-956F-53E668BD6094}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=c:\Please Choose the Path to Your Program
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
LicenseFile=D:\My Program\EULA.txt
OutputDir=D:\My Program\Inno\
OutputBaseFilename=setup
SetupIconFile=D:\My Program\\Graphics\Icon.ico
Compression=lzma
SolidCompression=yes
모든 것은 하나의 것만 빼고 싶습니다. 내 프로그램은 몇 가지 다른 소프트웨어를 수정하기 위해 만들어졌습니다. 그래서 모든 디렉토리에 하나의 기본 디렉토리를 지정할 수 없습니다. 동시에 사용자가 선택할 디렉토리를 명확하게 지적하고자합니다. 나는 다음과 같이 쓴 이유 :
DefaultDirName=c:\Please Choose the Path to Your Program
코드 줄의 문제는 특정 디렉토리에 대한 사용자 지점 내 설치 추가하려고 할 때 (해당 디렉토리에 "\ 프로그램의 경로를 선택하십시오"이다 분명히 내 프로그램이 제대로 작동하지 않을 것이다). 어떻게 이런 일이 일어나지 않도록 방지 할 수 있지만 내 프로그램을 설치할 때 어떤 디렉토리를 선택해야하는지 사용자에게 알려 주실 수 있습니까?
글쎄 ... 나는 질문을하기 전에 약간의 연구를했으며, 그 대답은 너무 어리석은 것처럼 느낍니다. @Tlama, 고마워! – Forc3ofWill
당신을 환영합니다! – TLama