You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I successfully compiled a binary file on Windows-server 2016, but it does not respond or crashes when I double-click it to open it. However, I can successfully execute it on another Windows 11.
To Reproduce
Perform the following operations on Windows Server 2016:
1.wails init -n test -t svelte
2.cd test
3.wails build -v 2
4.run build/bin/test.exe and it crashes
Copying build/bin/test.exe to windows11 can run normally
Expected behaviour
Hope it can run normally on windows-server 2016
Screenshots
No response
Attempted Fixes
No response
System Details
$ wails doctor
Wails Doctor
# Wails
Version | v2.9.3
# System
┌───────────────────────────────────────────────────────────────────────────────────┐
| OS | Windows Server 2016 Standard || Version | 1607 (Build: 14393) || ID ||| Go Version | go1.23.6 || Platform | windows || Architecture | amd64 || CPU 1 | Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz || CPU 2 | Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz || CPU 3 | Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz || CPU 4 | Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz || GPU | Microsoft 基本显示适配器 ((标准显示卡类型)) - Driver: 10.0.14393.0 || Memory | 8GB |
└───────────────────────────────────────────────────────────────────────────────────┘
# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status | Version || WebView2 | N/A | Installed | 133.0.3065.59 || Nodejs | N/A | Installed | 22.14.0 || npm | N/A | Installed | 10.9.2 ||*upx | N/A | Available |||*nsis | N/A | Available ||
└─────────────── * - Optional Dependency ───────────────┘
# Diagnosis
Optional package(s) installation details:
- upx : Available at https://upx.github.io/
- nsis : More info at https://wails.io/docs/guides/windows-installer/
SUCCESS Your system is ready for Wails development!
♥ If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony
Additional context
The build output is as follows:
$ wails build -v 2
Wails CLI v2.9.3
• Generating bindings: INFO
Done.
• Installing frontend dependencies:
INFO Install command: 'npm install'
added 24 packages, and audited 25 packages in 7m
6 packages are looking for funding
run `npm fund` for details
3 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
npm warn deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
Done.
• Compiling frontend:
INFO Build command: 'npm run build'
> frontend@0.0.0 build
> vite build
vite v3.2.11 building for production...
transforming...
✓ 9 modules transformed.
20:32:22 [vite-plugin-svelte] dom compile done.
package files time avg
frontend 1 92.9ms 92.9ms
rendering chunks...
dist/assets/logo-universal.157a874a.png 136.42 KiB
dist/assets/nunito-v16-latin-regular.06f3af3f.woff2 18.53 KiB
dist/index.html 0.35 KiB
dist/assets/index.11cb8a15.js 4.92 KiB / gzip: 2.28 KiB
dist/assets/index.aef596d3.css 1.33 KiB / gzip: 0.59 KiB
Done.
• Generating application assets: Done.
• Compiling application:
INFO Build command: go build -buildvcs=false -tags desktop,wv2runtime.download,production -ldflags "-w -s -H windowsgui" -o C:\Users\Administrator\test\build\bin\test.exe
• Environment:%!(EXTRA string=ACLOCAL_PATH=C:\Program Files\Git\mingw64\share\aclocal;C:\Program Files\Git\usr\share\aclocal ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Administrator\AppData\Roaming CLIENTNAME=LAPTOP-EU0D7GPQ COMMONPROGRAMFILES=C:\Program Files\Common Files COMPUTERNAME=WIN-VD2R0F9BU61 COMSPEC=C:\Windows\system32\cmd.exe CONFIG_SITE=C:/Program Files/Git/etc/config.site CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files DISPLAY=needs-to-be-defined EXEPATH=C:\Program Files\Git FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer FPS_BROWSER_USER_PROFILE_STRING=Default GOPATH=C:\Users\Administrator\go HOME=C:\Users\Administrator HOMEDRIVE=C: HOMEPATH=\Users\Administrator HOSTNAME=WIN-VD2R0F9BU61 INFOPATH=C:\Program Files\Git\usr\local\info;C:\Program Files\Git\usr\share\info;C:\Program Files\Git\usr\info;C:\Program Files\Git\share\info LC_CTYPE=zh_CN.UTF-8@cjknarrow LOCALAPPDATA=C:\Users\Administrator\AppData\Local LOGONSERVER=\WIN-VD2R0F9BU61 MANPATH=C:\Program Files\Git\mingw64\local\man;C:\Program Files\Git\mingw64\share\man;C:\Program Files\Git\usr\local\man;C:\Program Files\Git\usr\share\man;C:\Program Files\Git\usr\man;C:\Program Files\Git\share\man MINGW_CHOST=x86_64-w64-mingw32 MINGW_PACKAGE_PREFIX=mingw-w64-x86_64 MINGW_PREFIX=C:/Program Files/Git/mingw64 MSYSTEM=MINGW64 MSYSTEM_CARCH=x86_64 MSYSTEM_CHOST=x86_64-w64-mingw32 MSYSTEM_PREFIX=C:/Program Files/Git/mingw64 NUMBER_OF_PROCESSORS=4 OLDPWD=C:/Users/Administrator ORIGINAL_PATH=C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Administrator\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Go\bin;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\go\bin;C:\Users\Administrator\AppData\Roaming\npm ORIGINAL_TEMP=C:/Users/ADMINI1/AppData/Local/Temp/2 ORIGINAL_TMP=C:/Users/ADMINI1/AppData/Local/Temp/2 OS=Windows_NT PATH=C:\Users\Administrator\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Administrator\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Go\bin;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\go\bin;C:\Users\Administrator\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PKG_CONFIG_PATH=C:\Program Files\Git\mingw64\lib\pkgconfig;C:\Program Files\Git\mingw64\share\pkgconfig PLINK_PROTOCOL=ssh PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 85 Stepping 7, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=5507 PROGRAMFILES=C:\Program Files PS1=[\033]0;$TITLEPREFIX:$PWD\007]\n[\033[32m]\u@\h [\033[35m]$MSYSTEM [\033[33m]\w[\033[36m]__git_ps1[\033[0m]\n$ PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public PWD=C:/Users/Administrator/test ProgramData=C:\ProgramData ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files SESSIONNAME=RDP-Tcp#2 SHELL=C:\Program Files\Git\usr\bin\bash.exe SHLVL=1 SSH_ASKPASS=C:/Program Files/Git/mingw64/bin/git-askpass.exe SYSTEMDRIVE=C: SYSTEMROOT=C:\Windows TEMP=C:\Users\ADMINI1\AppData\Local\Temp\2 TERM=xterm TERM_PROGRAM=mintty TERM_PROGRAM_VERSION=3.5.1 TMP=C:\Users\ADMINI1\AppData\Local\Temp\2 TMPDIR=C:\Users\ADMINI~1\AppData\Local\Temp\2 USERDOMAIN=WIN-VD2R0F9BU61 USERDOMAIN_ROAMINGPROFILE=WIN-VD2R0F9BU61 USERNAME=Administrator USERPROFILE=C:\Users\Administrator WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS= WEBVIEW2_BROWSER_EXECUTABLE_FOLDER= WEBVIEW2_PIPE_FOR_SCRIPT_DEBUGGER= WEBVIEW2_RELEASE_CHANNEL_PREFERENCE=0 WEBVIEW2_USER_DATA_FOLDER= WINDIR=C:\Windows _=C:/Users/Administrator/go/bin/wails GOOS=windows GOARCH=amd64)Done.
INFO Wails is now using the new Go WebView2Loader. If you encounter any issues with it, please report them to https://github.com//issues/2004. You could also use the old legacy loader with -tags native_webview2loader, but keep in mind this will be deprecated in the near future.
Built 'C:\Users\Administrator\test\build\bin\test.exe' in 7m39.899s.
StudyAndGrow
changed the title
在Windows-server 2016上成功编译出二进制文件双击打开时无响应或闪退
The binary file is successfully compiled on Windows-server 2016, but it does not respond or crashes when double-clicked to run
Feb 13, 2025
Thanks for opening this. We don't officially support Windows Server 2016 so it won't be a priority to fix this but it would be good if we can. If you can, please move this to discord where you'll get quicker, more directed responses.
Description
I successfully compiled a binary file on Windows-server 2016, but it does not respond or crashes when I double-click it to open it. However, I can successfully execute it on another Windows 11.
To Reproduce
Perform the following operations on Windows Server 2016:
1.wails init -n test -t svelte
2.cd test
3.wails build -v 2
4.run build/bin/test.exe and it crashes
Copying build/bin/test.exe to windows11 can run normally
Expected behaviour
Hope it can run normally on windows-server 2016
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
The build output is as follows:
$ wails build -v 2
Wails CLI v2.9.3
Build Options
Platform(s) | windows/amd64
Compiler | C:\Program Files\Go\bin\go.exe
Skip Bindings | false
Build Mode | production
Devtools | false
Frontend Directory | C:\Users\Administrator\test\frontend
Obfuscated | false
Skip Frontend | false
Compress | false
Package | true
Clean Bin Dir | false
LDFlags |
Tags | []
Race Detector | false
Building target: windows/amd64
• Generating bindings: INFO
Done.
• Installing frontend dependencies:
INFO Install command: 'npm install'
Done.
• Compiling frontend:
INFO Build command: 'npm run build'
Done.
• Generating application assets: Done.
• Compiling application:
INFO Build command: go build -buildvcs=false -tags desktop,wv2runtime.download,production -ldflags "-w -s -H windowsgui" -o C:\Users\Administrator\test\build\bin\test.exe
• Environment:%!(EXTRA string=ACLOCAL_PATH=C:\Program Files\Git\mingw64\share\aclocal;C:\Program Files\Git\usr\share\aclocal ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Administrator\AppData\Roaming CLIENTNAME=LAPTOP-EU0D7GPQ COMMONPROGRAMFILES=C:\Program Files\Common Files COMPUTERNAME=WIN-VD2R0F9BU61 COMSPEC=C:\Windows\system32\cmd.exe CONFIG_SITE=C:/Program Files/Git/etc/config.site CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files DISPLAY=needs-to-be-defined EXEPATH=C:\Program Files\Git FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer FPS_BROWSER_USER_PROFILE_STRING=Default GOPATH=C:\Users\Administrator\go HOME=C:\Users\Administrator HOMEDRIVE=C: HOMEPATH=\Users\Administrator HOSTNAME=WIN-VD2R0F9BU61 INFOPATH=C:\Program Files\Git\usr\local\info;C:\Program Files\Git\usr\share\info;C:\Program Files\Git\usr\info;C:\Program Files\Git\share\info LC_CTYPE=zh_CN.UTF-8@cjknarrow LOCALAPPDATA=C:\Users\Administrator\AppData\Local LOGONSERVER=\WIN-VD2R0F9BU61 MANPATH=C:\Program Files\Git\mingw64\local\man;C:\Program Files\Git\mingw64\share\man;C:\Program Files\Git\usr\local\man;C:\Program Files\Git\usr\share\man;C:\Program Files\Git\usr\man;C:\Program Files\Git\share\man MINGW_CHOST=x86_64-w64-mingw32 MINGW_PACKAGE_PREFIX=mingw-w64-x86_64 MINGW_PREFIX=C:/Program Files/Git/mingw64 MSYSTEM=MINGW64 MSYSTEM_CARCH=x86_64 MSYSTEM_CHOST=x86_64-w64-mingw32 MSYSTEM_PREFIX=C:/Program Files/Git/mingw64 NUMBER_OF_PROCESSORS=4 OLDPWD=C:/Users/Administrator ORIGINAL_PATH=C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Administrator\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Go\bin;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\go\bin;C:\Users\Administrator\AppData\Roaming\npm ORIGINAL_TEMP=C:/Users/ADMINI
1/AppData/Local/Temp/2 ORIGINAL_TMP=C:/Users/ADMINI1/AppData/Local/Temp/2 OS=Windows_NT PATH=C:\Users\Administrator\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Administrator\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Go\bin;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\go\bin;C:\Users\Administrator\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PKG_CONFIG_PATH=C:\Program Files\Git\mingw64\lib\pkgconfig;C:\Program Files\Git\mingw64\share\pkgconfig PLINK_PROTOCOL=ssh PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 85 Stepping 7, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=5507 PROGRAMFILES=C:\Program Files PS1=[\033]0;$TITLEPREFIX:$PWD\007]\n[\033[32m]\u@\h [\033[35m]$MSYSTEM [\033[33m]\w[\033[36m]__git_ps1
[\033[0m]\n$ PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public PWD=C:/Users/Administrator/test ProgramData=C:\ProgramData ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files SESSIONNAME=RDP-Tcp#2 SHELL=C:\Program Files\Git\usr\bin\bash.exe SHLVL=1 SSH_ASKPASS=C:/Program Files/Git/mingw64/bin/git-askpass.exe SYSTEMDRIVE=C: SYSTEMROOT=C:\Windows TEMP=C:\Users\ADMINI1\AppData\Local\Temp\2 TERM=xterm TERM_PROGRAM=mintty TERM_PROGRAM_VERSION=3.5.1 TMP=C:\Users\ADMINI1\AppData\Local\Temp\2 TMPDIR=C:\Users\ADMINI~1\AppData\Local\Temp\2 USERDOMAIN=WIN-VD2R0F9BU61 USERDOMAIN_ROAMINGPROFILE=WIN-VD2R0F9BU61 USERNAME=Administrator USERPROFILE=C:\Users\Administrator WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS= WEBVIEW2_BROWSER_EXECUTABLE_FOLDER= WEBVIEW2_PIPE_FOR_SCRIPT_DEBUGGER= WEBVIEW2_RELEASE_CHANNEL_PREFERENCE=0 WEBVIEW2_USER_DATA_FOLDER= WINDIR=C:\Windows _=C:/Users/Administrator/go/bin/wails GOOS=windows GOARCH=amd64)Done.INFO Wails is now using the new Go WebView2Loader. If you encounter any issues with it, please report them to https://github.com//issues/2004. You could also use the old legacy loader with
-tags native_webview2loader
, but keep in mind this will be deprecated in the near future.Built 'C:\Users\Administrator\test\build\bin\test.exe' in 7m39.899s.
♥ If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony
The wails.json file is as follows:
{
"$schema": "https://wails.io/schemas/config.v2.json",
"name": "test",
"outputfilename": "test",
"frontend:install": "npm install",
"frontend:build": "npm run build",
"frontend:dev:watcher": "npm run dev",
"frontend:dev:serverUrl": "auto",
"author": {
"name": "",
"email": ""
}
}
The text was updated successfully, but these errors were encountered: