mirror of
https://github.com/ckamte/adobe-packager-windows.git
synced 2026-11-16 10:37:21 -05:00
Add legible error message for missing setup file
hopefully this will help avoid confusion for people who can't follow instructions, such as myself.
This commit is contained in:
@@ -59,18 +59,23 @@ session = requests.sessions.Session()
|
|||||||
|
|
||||||
|
|
||||||
def setup_version():
|
def setup_version():
|
||||||
jsonFromPowerShell = subprocess.run(
|
try:
|
||||||
[
|
jsonFromPowerShell = json.loads(subprocess.run(
|
||||||
"powershell.exe",
|
[
|
||||||
"(Get-Item '"
|
"powershell.exe",
|
||||||
+ ADOBE_SETUP_BIN
|
"(Get-Item '"
|
||||||
+ "').VersionInfo.FileVersion | ConvertTo-Json",
|
+ ADOBE_SETUP_BIN
|
||||||
],
|
+ "').VersionInfo.FileVersion | ConvertTo-Json",
|
||||||
stdout=subprocess.PIPE,
|
],
|
||||||
stderr=subprocess.STDOUT,
|
stdout=subprocess.PIPE,
|
||||||
shell=True,
|
stderr=subprocess.STDOUT,
|
||||||
).stdout
|
shell=True,
|
||||||
return json.loads(jsonFromPowerShell)
|
).stdout)
|
||||||
|
return jsonFromPowerShell
|
||||||
|
except Exception as e:
|
||||||
|
sys.stderr.write("Set-up.exe not found! Please extract Set-up.exe from one of the archives, and place it in this directory.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def os_data():
|
def os_data():
|
||||||
|
|||||||
Reference in New Issue
Block a user