New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating to automatic and multilanguage package #43
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<Jobs> | ||
<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="d949cb73-a098-4af4-8ea7-ac580eda16ab"> | ||
<WebsiteUrl /> | ||
<UserAgent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19</UserAgent> | ||
<UserNotes /> | ||
<LastFileSize>54476696</LastFileSize> | ||
<LastFileDate>2012-05-23T02:29:03.7775241</LastFileDate> | ||
<IgnoreFileInformation>false</IgnoreFileInformation> | ||
<DownloadBeta>Avoid</DownloadBeta> | ||
<DownloadDate xsi:nil="true" /> | ||
<CheckForUpdatesOnly>false</CheckForUpdatesOnly> | ||
<VariableChangeIndicator /> | ||
<CanBeShared>true</CanBeShared> | ||
<ShareApplication>false</ShareApplication> | ||
<ExclusiveDownload>false</ExclusiveDownload> | ||
<HttpReferer /> | ||
<SetupInstructions /> | ||
<Variables> | ||
<item> | ||
<key> | ||
<string>version</string> | ||
</key> | ||
<value> | ||
<UrlVariable> | ||
<RegexRightToLeft>false</RegexRightToLeft> | ||
<VariableType>RegularExpression</VariableType> | ||
<Regex>Version[^<>]+?(\d+\.\d+\.\d+)\)</Regex> | ||
<Url>http://get.adobe.com/reader/</Url> | ||
<StartText><p><a href="/es/reader/completion/?installer=Reader_</StartText> | ||
<EndText>_Spanish_for_Windows"</EndText> | ||
<TextualContent /> | ||
<Name>version</Name> | ||
</UrlVariable> | ||
</value> | ||
</item> | ||
<item> | ||
<key> | ||
<string>mainversion</string> | ||
</key> | ||
<value> | ||
<UrlVariable> | ||
<RegexRightToLeft>false</RegexRightToLeft> | ||
<VariableType>StartEnd</VariableType> | ||
<Regex /> | ||
<Url>http://get.adobe.com/reader/</Url> | ||
<StartText><p class="NoBottomMargin" id="AUTO_ID_columnleft_p_version"><strong>Version XI (</StartText> | ||
<EndText>.</EndText> | ||
<Name>mainversion</Name> | ||
</UrlVariable> | ||
</value> | ||
</item> | ||
</Variables> | ||
<ExecuteCommand /> | ||
<ExecutePreCommand /> | ||
<ExecuteCommandType>Batch</ExecuteCommandType> | ||
<ExecutePreCommandType>Batch</ExecutePreCommandType> | ||
<Category /> | ||
<SourceType>FixedUrl</SourceType> | ||
<PreviousLocation>C:\Chocolatey\_work\AdbeRdr1013_en_US.exe</PreviousLocation> | ||
<DeletePreviousFile>true</DeletePreviousFile> | ||
<Enabled>false</Enabled> | ||
<FileHippoId /> | ||
<LastUpdated>2012-05-23T02:29:03.7775241</LastUpdated> | ||
<TargetPath>C:\Chocolatey\_work\</TargetPath> | ||
<FixedDownloadUrl>http://ardownload.adobe.com/pub/adobe/reader/win/{mainversion}.x/{version}/en_US/AdbeRdr{version:replace:.:}_en_US.exe</FixedDownloadUrl> | ||
<Name>adobereader</Name> | ||
</ApplicationJob> | ||
</Jobs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,42 @@ | ||
$silentArgs = '/sPB /msi /norestart /quiet ALLUSERS=1 EULA_ACCEPT=YES' | ||
$downloadUrl = '{{DownloadUrl}}' | ||
$packageName = 'adobereader' | ||
$installerType = 'EXE' | ||
$silentArgs = '/sAll /msi /norestart /quiet ALLUSERS=1 EULA_ACCEPT=YES' | ||
#$url = 'http://ardownload.adobe.com/pub/adobe/reader/win/{mainversion}.x/{version}/en_US/AdbeRdr{version:replace:.:}_en_US.exe' | ||
$url = '{{DownloadUrl}}' | ||
#http://forums.adobe.com/thread/754256 | ||
#http://www.appdeploy.com/messageboards/tm.asp?m=37416 | ||
# '/sPB /msi /norestart ALLUSERS=1 EULA_ACCEPT=YES' | ||
#'/sAll /rs /msi "/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES"' | ||
#'/msi /norestart /quiet' | ||
Install-ChocolateyPackage 'adobereader' 'exe' "$silentArgs" "$downloadUrl" | ||
|
||
$LCID = (Get-Culture).LCID | ||
|
||
##Spanish | ||
if(($LCID -eq "3082") -or ($LCID -eq "1034")){ | ||
$url = $url -replace 'en_US', 'es_ES' | ||
} | ||
|
||
##French | ||
elseif($LCID -eq "1036"){ | ||
$url = $url -replace 'en_US', 'fr_FR' | ||
} | ||
|
||
##German | ||
elseif($LCID -eq "1031"){ | ||
$url = $url -replace 'en_US', 'de_DE' | ||
} | ||
|
||
##Japanese | ||
elseif($LCID -eq "1041"){ | ||
$url = $url -replace 'en_US', 'ja_JP' | ||
} | ||
|
||
##English | ||
else{ | ||
$url = $url | ||
} | ||
|
||
Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" -validExitCodes $validExitCodes | ||
|
||
#LCID table | ||
#http://msdn.microsoft.com/es-es/goglobal/bb964664.aspx |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is incorrect. {version:replace:.:} is a function of ketarin, not of powershell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, adobereader isn't multi yet? u can do it manual but multi if not?
2014-02-09 21:33 GMT+01:00 Rob Reynolds notifications@github.com:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that you are attempting to call a KETARIN function in PowerShell which does not know
{mainversion}
{version}
or{version.replace:.:}
. This looks to be a copy/paste error. (Oh wait) you have this commented.Nevermind. Ignore this. :)