windows发布 补充

Posted hanzeng1993

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了windows发布 补充相关的知识,希望对你有一定的参考价值。

-----------****************-----------DesktopAppConverter----------------***************---------

-----------------------DesktopAppConverter-------管理者----------------
////C:\ProgramData\Microsoft\Windows\Images\Windows_BaseImage_DAC_17134
//Set-ExecutionPolicy bypass
//DesktopAppConverter.exe -Setup -BaseImage C:\tools\uwp\Windows_BaseImage_DAC_17134.wim -Verbose

 

-----------------------DesktopAppConverter-------管理者---------------
DesktopAppConverter.exe -Installer C:\temp\JTR\ -AppExecutable JTR.exe -Destination C:\Output -PackageName "JTRTest" -Publisher "CN=MyPublisher1" -Version 0.0.0.1

//DesktopAppConverter.exe -Installer C:\temp\JTR\JTR.exe -InstallerArguments /S -Destination C:\Output -PackageName "MyApp2" -Publisher "CN=MyPublisher" -Version 0.0.0.1 -MakeAppx -Sign -Verbose -Verify
//DesktopAppConverter.exe -Installer C:\temp\JTR\JTR.exe -InstallerArguments "/S" -Destination C:\Output -PackageName "MyApp3" -Publisher "CN=MyPublisher" -Version 0.0.0.1 -ExpandedBaseImage C:\ProgramData\Microsoft\Windows\Images\Windows_BaseImage_DAC_17134 -Verbose

-----------------------cmd-------管理者----------------
C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86

MakeAppx pack /d C:\output\JTRTest\PackageFiles /p C:\output\JTRTest\JTRTest.appx


MakeCert.exe -r -h 0 -n "CN=MyPublisher1" -eku 1.3.6.1.5.5.7.3.3 -pe -sv signingCert.pvk signingCert.cer
pvk2pfx.exe -pvk signingCert.pvk -spc signingCert.cer -pfx signingCert.pfx -po 123456
SignTool sign /fd SHA256 /a /f signingCert.pfx /p 123456 C:\output\JTRTest\JTRTest.appx


//---------------powerShell----------------------
//Add-AppxPackage -Path C:\output\JTR\jtr.appx

//C:\Program Files\WindowsApps\JTRTest_0.0.0.1_x86__cv3177mx9y6q8\resources

 


------------------------------------------------
//err:DesktopAppConverter.exe -Installer C:\temp\test\JTR\ -AppExecutable JTR.exe -Destination C:\temp\test\output -PackageName "JTRTest" -Publisher "CN=JTRPublisher" -Version 0.0.0.1
DesktopAppConverter.exe -Installer C:\temp\test\JTR\ -AppExecutable JTR.exe -Destination C:\output1 -PackageName "JTRTest" -Publisher "CN=JTRPublisher" -Version 0.0.0.1
MakeAppx pack /d C:\output1\JTRTest\PackageFiles /p C:\output1\JTRTest\JTRTest.appx

MakeCert.exe -r -h 0 -n "CN=JTRPublisher" -eku 1.3.6.1.5.5.7.3.3 -pe -sv signingCertJTR.pvk signingCertJTR.cer
pvk2pfx.exe -pvk signingCertJTR.pvk -spc signingCertJTR.cer -pfx signingCertJTR.pfx -po 123456
SignTool sign /fd SHA256 /a /f signingCertJTR.pfx /p 123456 C:\output1\JTRTest\JTRTest.appx

---------------------csv five debug------------
DesktopAppConverter.exe -Installer C:\temp\test\JTR\ -AppExecutable JTR.exe -Destination C:\output1 -PackageName "JTRTestCSV" -Publisher "CN=JTRPublisherCSV" -Version 0.0.0.1
MakeAppx pack /d C:\output1\JTRTestCSV\PackageFiles /p C:\output1\JTRTestCSV\JTRTestCSV.appx

MakeCert.exe -r -h 0 -n "CN=JTRPublisherCSV" -eku 1.3.6.1.5.5.7.3.3 -pe -sv signingCertJTRCSV.pvk signingCertJTRCSV.cer
pvk2pfx.exe -pvk signingCertJTRCSV.pvk -spc signingCertJTRCSV.cer -pfx signingCertJTRCSV.pfx -po 123456
SignTool sign /fd SHA256 /a /f signingCertJTRCSV.pfx /p 123456 C:\output1\JTRTestCSV\JTRTestCSV.appx


---------------------debug------------
DesktopAppConverter.exe -Installer C:\temp\test\JTR\ -AppExecutable JTR.exe -Destination C:\output1 -PackageName "JTRTestDebug" -Publisher "CN=JTRPublisherDebug" -Version 0.0.0.1

MakeAppx pack /d C:\output1\JTRTestDebug\PackageFiles /p C:\output1\JTRTestDebug\JTRTestDebug.appx

MakeCert.exe -r -h 0 -n "CN=JTRPublisherDebug" -eku 1.3.6.1.5.5.7.3.3 -pe -sv signingCertJTRDebug.pvk signingCertJTRDebug.cer
pvk2pfx.exe -pvk signingCertJTRDebug.pvk -spc signingCertJTRDebug.cer -pfx signingCertJTRDebug.pfx -po 123456
SignTool sign /fd SHA256 /a /f signingCertJTRDebug.pfx /p 123456 C:\output1\JTRTestDebug\JTRTestDebug.appx


---------------------dl five debug------------
DesktopAppConverter.exe -Installer C:\temp\test\JTR\ -AppExecutable JTR.exe -Destination C:\output1 -PackageName "JTRTestDL" -Publisher "CN=JTRPublisherDL" -Version 0.0.0.1
MakeAppx pack /d C:\output1\JTRTestDL\PackageFiles /p C:\output1\JTRTestDL\JTRTestDL.appx

MakeCert.exe -r -h 0 -n "CN=JTRPublisherDL" -eku 1.3.6.1.5.5.7.3.3 -pe -sv signingCertJTRDL.pvk signingCertJTRDL.cer
pvk2pfx.exe -pvk signingCertJTRDL.pvk -spc signingCertJTRDL.cer -pfx signingCertJTRDL.pfx -po 123456
SignTool sign /fd SHA256 /a /f signingCertJTRDL.pfx /p 123456 C:\output1\JTRTestDL\JTRTestDL.appx


-----------****************-----------MISX----------------***************---------
New-SelfSignedCertificate -Type Custom -Subject "CN=Contoso Software, O=Contoso Corporation, C=US" -KeyUsage DigitalSignature -FriendlyName "JTR" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37=text1.3.6.1.5.5.7.3.3", "2.5.29.19=text")


Set-Location Cert:\CurrentUser\My
Get-ChildItem | Format-Table Subject, FriendlyName, Thumbprint


$pwd = ConvertTo-SecureString -String 123456789 -Force -AsPlainText
Export-PfxCertificate -cert "Cert:\CurrentUser\My\148F38FC44EA0EF2253E36F1EC367C2B59FC14A9" -FilePath C:\Users\FR2G0-SF\Desktop\JTRpublickey.pfx -Password $pwd

 

以上是关于windows发布 补充的主要内容,如果未能解决你的问题,请参考以下文章

21.7 windows_21_Library_Variable_DLL_USE 动态库补充7

Windows Server 2016-ActiveDirectory新增功能补充

21.2 windows_21_Library_Class_DLL_USE 动态库补充2

21.4 windows_21_Library_use_DLL 动态库补充4

21.1 windows_21_Library_Class_DLL 动态库补充1

21.5 windows_21_Library_use_DLL_Invoke 动态库补充5