- Problem: MSI installs to
C:\Program Files\DevStackBox\instead ofC:\dsb\ - Cause: Tauri's default WiX template overrides custom directory settings
- Fix Applied: Enhanced WiX fragment with custom actions that run early in installation sequence
- Problem: Installer shows "[1] size: [1]" instead of actual filenames
- Cause: Likely due to glob patterns in resources causing WiX file enumeration issues
- Investigation: Need to check if file count/names are properly enumerated
- Problem: Apache won't start when installed via MSI
- Potential Causes:
- Path detection issues in installed environment
- Permission problems in Program Files
- Missing configuration files
- Incorrect working directory
fn get_installation_path() -> PathBuf {
// 1. Check executable location first
// 2. Validate server components exist
// 3. Fallback to common paths
// 4. Better Program Files handling
}<!-- Custom actions with proper sequence timing -->
<CustomAction Id="OverrideInstallDir" Property="APPLICATIONFOLDER" Value="C:\dsb\" Execute="immediate" />
<InstallExecuteSequence>
<Custom Action="OverrideInstallDir" After="LaunchConditions">NOT Installed</Custom>
</InstallExecuteSequence>debug_installation(): Shows detailed path detection and component statustest_apache_config(): Tests Apache configuration without starting service- Enhanced error reporting with full paths and permission checks
- All commands use
CREATE_NO_WINDOWflag - Hidden window creation for service startup
- No more command prompt flashing
-
Install MSI and Check:
- Installation directory: Should be
C:\dsb\ - Component files: All server files should be present
- Permissions: Read/execute access to binaries
- Installation directory: Should be
-
Debug Commands:
- Run
debug_installationto see path detection results - Run
test_apache_configto check Apache configuration - Verify server component existence and accessibility
- Run
-
Service Startup:
- Check if Apache config test passes
- Verify working directory is correct
- Test manual Apache startup from command line
✅ MSI Installation: Should install to C:\dsb\ instead of Program Files
✅ File Display: Should show proper filenames during installation
✅ Apache Startup: Should start successfully from installed location
✅ Debug Info: Should provide detailed troubleshooting information
✅ No Terminal Flashing: Services start silently in background
If MSI still installs to Program Files:
- Check WiX log files for custom action execution
- Verify property values during installation
- Consider using MSI command line:
msiexec /i installer.msi APPLICATIONFOLDER="C:\dsb\"
If Apache still won't start:
- Use
debug_installationto check detected paths - Use
test_apache_configto verify configuration - Check file permissions in installation directory
- Verify config files were created properly