Skip to content
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

Redownload is not available #46

Closed
pandermatt opened this issue Sep 21, 2016 · 15 comments
Closed

Redownload is not available #46

pandermatt opened this issue Sep 21, 2016 · 15 comments

Comments

@pandermatt
Copy link
Contributor

pandermatt commented Sep 21, 2016

mas install 406056744
Didn't downloaded yet

"This redownload is not available for this Apple ID either because it was bought by a different user of the item was refunded or cancelled." Any way to fix this?

[1] 747 illegal hardware instruction mas install 406056744

@rodionovd
Copy link
Contributor

rodionovd commented Sep 21, 2016

Interesting, it definitely works for me:

$ mas install 406056744
==> Downloading Evernote – stay organized
==> Installed Evernote – stay organized

$ mas version
1.3.0

Are you able to download Evernote via the Mac App Store itself?

@argon
Copy link
Contributor

argon commented Sep 21, 2016

mas install will not allow you to install an app for the first time, it must already be in the purchased tab of the App Store. Perhaps that is the problem you're seeing?

@pandermatt
Copy link
Contributor Author

@argon I think thats the problem... Is there a way to install an app without first downloading it form the app store

@argon
Copy link
Contributor

argon commented Sep 21, 2016

That is not currently an objective of this tool.

@argon argon closed this as completed Sep 21, 2016
@argon
Copy link
Contributor

argon commented Sep 21, 2016

If you believe it would be a valuable addition please open an issue to request an enhancement of the tool.

@arunsathiya
Copy link

@argon Just to learn about this issue, is this a limitation from Apple, or is this is something this tool doesn't support yet?

@conatus
Copy link

conatus commented Feb 17, 2019

Hi all.

Thanks very much for your work on this.

I think it is a reasonable expectation for this functionality to be included. It was my expectation this is how it worked, like similar tools such as Homebrew and npm. It was a little disappointing the functionality was not as such.

As @arunsathiya asks, is this a technical limitation or simply something that you consider out of scope?

@phatblat
Copy link
Member

@conatus AFAIK purchasing apps has never been "in scope" in this project. However, I am looking into #144 since downloading macOS installers apparently doesn't require you to be logged into the App Store.

It's actually incredible that @argon ever figured out how to signin (see #164) and install apps from the MAS because these leverage private APIs inside macOS that aren't meant to be used by anything other than Apple's own apps. I have some thoughts in #218 and may look into installing free apps some day. However, there are big risks with a non-Apple tool actually triggering financial transactions.

@phatblat
Copy link
Member

@arunsathiya technically, mas shouldn't be able to install apps at all and its lucky that this hasn't broken over the years like #164 🙁

@conatus
Copy link

conatus commented Feb 18, 2019

@phatblat

Thanks for the background. And props to @argon for finding a work around!

Though it probably isn't something they would do, has anyone reached out to Apple directly on this? I can imagine that for system admins that are administrating fleets of Macs such functionality would be useful medium term. So might be in their interest to open up these private APIs.

@Red1860
Copy link

Red1860 commented May 20, 2020

Is it possible to install OS X installers old which have not been purchased from the App Store?

@phatblat
Copy link
Member

@Rohan200220 yes, this may be possible. #106 has discussion on how to install macOS installers and #264 just added purchase support for free apps (due out soon in 1.7). #144 is a request for this without being signed in, which may also be possible.

@Red1860
Copy link

Red1860 commented May 22, 2020

@phatblat Cant wait for v1.7!!!! This would be so awsome!!

@Red1860
Copy link

Red1860 commented May 22, 2020

@phatblat Any Estimated time of when v 1.7 is released?

@muescha
Copy link

muescha commented Jun 18, 2022

since it is an restriction by then app store then i have accept it

but:

a) is it possible to check with mas if an app is already in my purchased list of apps?

b) should it be possible to print out a hint to the command line when i try to install, so that i know thats not a bug but a limitation - and how can i solve this (purchase in app store app first).

mas install 1615169630
No downloads
Error: No downloads began

to:

mas install 1615169630
No downloads
Error: No downloads began

Note: mas can only install already installed apps from App Store which are in your purchased apps list.  
Solution: install the app via App Store - open this app in the app store with this command:

mas open 1615169630

related code snippets:

return Promise<SSPurchase> { seal in
let purchase = SSPurchase(adamId: appID, account: storeAccount, purchase: purchase)
purchase.perform { purchase, _, error, response in
if let error = error {
seal.reject(MASError.purchaseFailed(error: error as NSError?))
return
}
guard response?.downloads.isEmpty == false, let purchase = purchase else {
print("No downloads")
seal.reject(MASError.noDownloads)
return
}
seal.fulfill(purchase)
}

case .noDownloads:
return "No downloads began"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants