windows发布 补充
2021-02-07 04:17
标签:execution export publish secure ppc store asp digital ica -----------****************-----------DesktopAppConverter----------------***************--------- -----------------------DesktopAppConverter-------管理者---------------- -----------------------DesktopAppConverter-------管理者--------------- //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 -----------------------cmd-------管理者---------------- MakeAppx pack /d C:\output\JTRTest\PackageFiles /p C:\output\JTRTest\JTRTest.appx //C:\Program Files\WindowsApps\JTRTest_0.0.0.1_x86__cv3177mx9y6q8\resources MakeCert.exe -r -h 0 -n "CN=JTRPublisher" -eku 1.3.6.1.5.5.7.3.3 -pe -sv signingCertJTR.pvk signingCertJTR.cer ---------------------csv five debug------------ MakeCert.exe -r -h 0 -n "CN=JTRPublisherCSV" -eku 1.3.6.1.5.5.7.3.3 -pe -sv signingCertJTRCSV.pvk signingCertJTRCSV.cer 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 MakeCert.exe -r -h 0 -n "CN=JTRPublisherDL" -eku 1.3.6.1.5.5.7.3.3 -pe -sv signingCertJTRDL.pvk signingCertJTRDL.cer windows发布 补充 标签:execution export publish secure ppc store asp digital ica 原文地址:https://www.cnblogs.com/hanzeng1993/p/11401502.html
////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.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 "MyApp3" -Publisher "CN=MyPublisher" -Version 0.0.0.1 -ExpandedBaseImage C:\ProgramData\Microsoft\Windows\Images\Windows_BaseImage_DAC_17134 -Verbose
C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86
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
------------------------------------------------
//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
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
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
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
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
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={text}1.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