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

[TIMOB-23762] Handle duplicate package error from Windows SDK 10.0.14393 #53

Merged
merged 1 commit into from
Aug 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.4.18 (8/12/2016)
-------------------
* [TIMOB-23762] Handle duplicate package error from Windows SDK 10.0.14393

0.4.17 (8/12/2016)
-------------------
* [TIMOB-23768] Detect installed Win10 SDK versions
Expand Down
12 changes: 9 additions & 3 deletions lib/wptool.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,15 @@ function wpToolInstall(deployCmd, device, appPath, options, callback) {
clearTimeout(abortTimer);

if (code) {
var errmsg = out.trim().split(/\r\n|\n/).shift(),
ex = new Error(/^Error: /.test(errmsg) ? errmsg.substring(7) : __('Failed to install app (code %s): %s', code, out));
callback(ex);
// handle duplicate package identity error code from Windows 10.0.14393 tooling and above
if (code == '2148734208') {
options.forceUnInstall = true;
wpToolInstall(deployCmd, device, appPath, options, callback);
} else {
var errmsg = out.trim().split(/\r\n|\n/).shift(),
ex = new Error(/^Error: /.test(errmsg) ? errmsg.substring(7) : __('Failed to install app (code %s): %s', code, out));
callback(ex);
}
} else {
var errmsg = /failed\. (\w*)\r?\n(.*)/.exec(out);
if (errmsg) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "windowslib",
"version": "0.4.17",
"version": "0.4.18",
"description": "Windows Phone Utility Library",
"keywords": [
"appcelerator",
Expand Down