Commit edce853
fix: print the manual elevated-PowerShell command instead of staging a .cmd (#246)
* Print the manual elevated-PowerShell command instead of staging a .cmd
Field result: endpoint protection also quarantines the .ps1 when the
self-elevating Install-CoDev-Office.cmd launches it. The only launch
mode it tolerates - proven repeatedly - is the user typing the command
in an elevated PowerShell themselves.
The Windows flow now downloads everything and prints exactly that:
open an elevated PowerShell (with the use-a-different-account UAC
guidance), then copy-paste two lines - cd into the staging folder and
the powershell -ExecutionPolicy Bypass -File command with the
profile-safe -ModulesDir/-SkillsRoot paths baked in, quoted where they
contain spaces. No wrapper file, no Explorer window, no spawn.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Standardize on Start-Process powershell -Verb RunAs for elevation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Remove every .cmd/wrapper reference from the office flow
officeWrapperBakedArgs -> officeBakedPathArgs, comments reworded to
describe the launch constraint without the retired staged-launcher
history, and the .cmd-absence test assertions dropped.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Stop baking -ModulesDir - the setup script's default is now the shared path
Companion to codev-scripts#23: %PUBLIC%\codev-office\node_modules is
the script's own default, so the printed command carries only
-SkillsRoot (the one per-machine value). Cross-platform staging now
bakes nothing.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Print the bare install command - the script now self-detects the user
Companion to codev-scripts#23: the setup script resolves the signed-in
user's skills root itself when elevated as a different account, and the
modules dir default is the shared %PUBLIC% path. Nothing per-machine
remains to bake, so the printed command is the same bare line the docs
show - one command everywhere.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Drop the stale baked-paths wording from the office comment and test
Nothing is baked into the printed command any more - the setup script
itself defaults to the shared %PUBLIC% dirs and detects the console
user.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* bump version
---------
Co-authored-by: Quickbeard <quickbeard@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 370ee36 commit edce853
3 files changed
Lines changed: 48 additions & 162 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
233 | 217 | | |
234 | 218 | | |
235 | 219 | | |
| |||
271 | 255 | | |
272 | 256 | | |
273 | 257 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | 258 | | |
305 | 259 | | |
306 | 260 | | |
| |||
461 | 415 | | |
462 | 416 | | |
463 | 417 | | |
464 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
465 | 426 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 427 | | |
| 428 | + | |
475 | 429 | | |
476 | 430 | | |
477 | 431 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 432 | + | |
| 433 | + | |
482 | 434 | | |
483 | | - | |
| 435 | + | |
| 436 | + | |
484 | 437 | | |
485 | | - | |
| 438 | + | |
486 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
487 | 443 | | |
488 | | - | |
| 444 | + | |
489 | 445 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
| 446 | + | |
509 | 447 | | |
510 | | - | |
| 448 | + | |
511 | 449 | | |
512 | 450 | | |
513 | 451 | | |
| |||
522 | 460 | | |
523 | 461 | | |
524 | 462 | | |
525 | | - | |
| 463 | + | |
526 | 464 | | |
527 | 465 | | |
528 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
| |||
399 | 397 | | |
400 | 398 | | |
401 | 399 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
406 | 404 | | |
407 | 405 | | |
408 | 406 | | |
| |||
424 | 422 | | |
425 | 423 | | |
426 | 424 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
| 425 | + | |
461 | 426 | | |
462 | 427 | | |
463 | | - | |
464 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
465 | 431 | | |
466 | 432 | | |
467 | 433 | | |
468 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
469 | 439 | | |
470 | 440 | | |
471 | 441 | | |
| |||
506 | 476 | | |
507 | 477 | | |
508 | 478 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | 479 | | |
524 | 480 | | |
525 | 481 | | |
| |||
555 | 511 | | |
556 | 512 | | |
557 | 513 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
| 514 | + | |
563 | 515 | | |
564 | 516 | | |
565 | 517 | | |
| |||
576 | 528 | | |
577 | 529 | | |
578 | 530 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | 531 | | |
584 | 532 | | |
585 | 533 | | |
| |||
0 commit comments