How to make a installer for InDesign extension


hey guys,

 

i don't know best way share extension. have tried adobe exchange problem not users have permissions cc service, get's software. possible force this, click button , asks permissions, it's not runnning in background?

 

or there way deal it?

your on wrong forum but..

 

1) custom made extension not mass distribution. tell client unzip , plonk in correct folder.

2) slightly more graceful script above. see mac version below.

3) tell them download installer http://zxpinstaller.com/

3.5) can package installer if don't care ridiculously bloating size of extensions

4) slightly more graceful script above. can have @ github - creativedo/zxpinstaller: open source zxp installer adobe extensions

5) see other ideas html panels tips: #10 packaging / zxp installers | photoshop, etc.

 

hth

 

trevor

 

var xfile = file.opendialog("please select extension file", function(f){return /zxp$/.test(f.name) || f instanceof folder}) if (!xfile) exit(); xsuffix = ".zxp"; xsuffix = xfile.name.slice(-4); xname = '"' + xfile.name.replace(/\.[^.]+$/,"") + '"'; zipsource = '"' + xfile.fsname + '"'; installextension = """     tell application "finder"         set tryinstalltouser true         set xfolder "library:application support:adobe:cep:extensions"         if tryinstalltouser             -- first try set user specific location             set xpath posix path of ((home unicode text) & xfolder)             try                 if not (exists xpath posix file) shell script "mkdir -p -m a=rwx " & xpath             on error errmsg                 set xpath posix path of (xfolder unicode text)             end try         else             set xpath posix path of (xfolder unicode text)         end if              set zipsource quoted form of """ + zipsource + """             set xname """ + xname + """                 -- process files                 set destfolder ((xpath & "/" & xname) unicode text)                 set zipdestination quoted form of destfolder                 -- record file mod date check it's changed installation                 if exists destfolder posix file                     set moddate shell script "mdls -name kmditemfscontentchangedate " & zipdestination                     shell script "rm -fr " & zipdestination                 else                     set moddate "no date"                 end if                 delay 1                 set installxtn "unzip -o  " & zipsource & " -d " & zipdestination                 shell script installxtn                  if exists destfolder posix file                     set newmoddate shell script "mdls -name kmditemfscontentchangedate " & zipdestination                 else                     set newmoddate false                 end if                 if (newmoddate not false) , (moddate not newmoddate)                     display notification "great looks installation successful. please restart indesign"                 else                     -- customize message required                     display notification "sorry installation failed."                 end if                 delay 1     end tell """; //installextension app.doscript (installextension, scriptlanguage.applescript_language); 

 

a plain applescript sample is

 

tell application "finder"     set destinationpath posix path of (((home unicode text) & "library:application support:adobe:cep:extensions") unicode text)     set resourcepath quoted form of posix path of ((((path me)) unicode text) & "contents:resources:indesign_druckbogen_vorschau.zip")     set zipfile "\"" & destinationpath & "/indesign_druckbogen_vorschau.zip\""     set zp destinationpath & "/indesign_druckbogen_vorschau"     set zipfolder "\"" & zp & "\""     shell script "cp -rfx " & resourcepath & " " & zipfile     set unzip "unzip -o  " & zipfile & " -d " & zipfolder     shell script unzip     delay 1     shell script "rm " & zipfile     if exists zp posix file         display notification "die indesign druckbogen vorschau erweiterung scheint erfolgreich installiert haben"     else         display notification "die indesign druckbogen vorschau verlängerung erweiterung scheint gescheitert erfolgreich installiert haben"     end if     delay 1 end tell 


More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working