ChrisTitusTech / website

My HUGO Website that I use for Videos, Blogs, and Redirects
74 stars 44 forks source link

installing-appx-without-msstore/ #70

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Installing Appx Without Microsoft Store

Having Fun with Technology

https://christitus.com/installing-appx-without-msstore/

langstonzac25 commented 1 year ago

You do have a typo on the title of your website.

SHJordan commented 1 year ago

Hi chris, i usually just lurk around your videos on YT. I love the knowledge you share. Thank you for it. Now, where or how can i do a windows LTSC or highly stripped out ISO? I wish i could have the knowledge to achieve that in a way i could be sub 50 processes.

LouisOuellet commented 1 year ago

I actually came accros this problem when I started setting up some new Windows Server 2022 RDS Servers. Since the windows store isn't installed by default on windows server. Used the same tools to get the job done!

Gertogjan commented 1 year ago

Hi Chris, I love the stripped down version of my ntlite iso a lot. And i followed this page, but i still can not use your CTT-windows Utility.exe Are there others who have the same problem or can help me?

111-DracX commented 1 year ago

Here is a project which i found can do the same but much more easily just select the app and it gets installed link: https://github.com/m-jishnu/alt-app-installer

Bitbitti commented 1 year ago

there is a way to do the same for gamepass games?

Saberous commented 1 year ago

What would I need to do, if I had to add a license?

SwiftLatency commented 1 year ago

Hello Chris,

Can you help me with that. I just installed Ghost Spectre, only problem I can't install winget and make it work. Thank You.

PS C:\Users\Administrator> winget-install.ps1 winget-install.ps1 : File C:\Program Files\WindowsPowerShell\Scripts\winget-install.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

s17534 commented 1 year ago

@SwiftLatency, look up here:

https://stackoverflow.com/questions/41117421/ps1-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system

methanoid commented 1 year ago

@s17534 so, prefix script with "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted" but it still wont run cos it doesnt want to run the script that includes making scripts runnable :-). You have to type that into Powershell first. What I am looking for is a script that WORKS and preferable doesnt need interaction (this needs confirmations too). Cracked that yet? :-D

s17534 commented 1 year ago

@s17534 so, prefix script with "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted" but it still wont run cos it doesnt want to run the script that includes making scripts runnable :-). You have to type that into Powershell first. What I am looking for is a script that WORKS and preferable doesnt need interaction (this needs confirmations too). Cracked that yet? :-D

Yep, this is what I've done as a workaround to make that script run. In my case it worked. I didn't need to run script to set ExecutionPolicy, just typed entire command in ps window which was run as a Admin. GL ;)

Ahmed167-del commented 1 year ago

i have a problem in my windows powershell i cant using any command , why ?? i did my own iso win 10 but i think i did not do that correctly i need help please

Ahmed167-del commented 1 year ago

PS C:\Windows\system32> Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable. Please try again later. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4302 char:9

Set-PSRepository : No repository with the name 'PSGallery' was found. At line:1 char:1

chadmark commented 11 months ago

Great post Chris! Hopefully you are monitoring the comments. Hoping you can help on this one

I am trying to use NuGet to remove the Win 11 Teams App remotely via PS on a bunch of systems. Problem is, the NuGet install requires a Y reply in order to run. Even if I use -force, the darn thing wants Y pressed. I've tried everything i can think of in order to pass that character in line with the script to make it non-interactive, but I can't figure it out. Was hoping you had some insight! Below is the prompt I am talking about

Set-ExecutionPolicy RemoteSigned Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted Install-Script -Name winget-install -Force <--- basically when you hit this point

NuGet provider is required to continue PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or 'C:\Windows\system32\config\systemprofile\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import the NuGet provider now? [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):

ChrisTitusTech commented 11 months ago

Great post Chris! Hopefully you are monitoring the comments. Hoping you can help on this one

I am trying to use NuGet to remove the Win 11 Teams App remotely via PS on a bunch of systems. Problem is, the NuGet install requires a Y reply in order to run. Even if I use -force, the darn thing wants Y pressed. I've tried everything i can think of in order to pass that character in line with the script to make it non-interactive, but I can't figure it out. Was hoping you had some insight! Below is the prompt I am talking about

Set-ExecutionPolicy RemoteSigned Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted Install-Script -Name winget-install -Force <--- basically when you hit this point

NuGet provider is required to continue PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or 'C:\Windows\system32\config\systemprofile\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import the NuGet provider now? [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):

I am working on a new install script for winget. Here is a new one I just commited: https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/winget.ps1

boog-i commented 11 months ago

After using the new script I keep getting the following error: Exception calling "OpenRead" with "1" argument(s): "Could not find file 'C:\microsoft.ui.xaml.2.7.0.nupkg'." At line:71 char:1

CrisA-Works commented 8 months ago

How different are these new scripts compared to the video ones? The ones in the tutorial looked simple enough to follow, but with these new ones I'm so lost. I have zero programming skills, could you re-upload a video tutorial with these changes please?

eskay993 commented 7 months ago

Thank you for this! Little tip for anyone getting " Operation is not supported on this platform." that took me ges to work out. Use regular Powershell built into Windows, and not Powershell Core. Seems to be an issue running AppX in Core - https://github.com/PowerShell/PowerShell/issues/13138

lilMochi commented 6 months ago

is there a way for us to add a file within the "C:\Program files\WindowsApp" folder without messing around the permission settings?

chowderhead commented 3 months ago

Hey Chris, man your a genius. Ive taken a crash course in powershell. its as painful as unix but its better than the evil 80 cpi BLACK window. thanks to your brilliant script i have winget installed and it works for the most part. I have just one problem. WingetUI is blank. no buttons work. nothing is displayed. Ive spent an entire day trying to get it working but it just sits there scanning for nothing. Ive done all the wiki help, at least 30 web pages and several youtube and found you. so Ive successfully installed Spotify like your video and a couple other useless apps just as a test. it works. so THANKYOU SO MUCH.. MSStore - I hate you. can you imagine if apple store was run like microsoft. Jesus.

But wingetUI is blank and acts like its dead. Im totally stuck.

my winget info all looks normal my paths look normal but im getting python errors. i reinstalled python nosuccess. confirmed my python path. Imm just at my limit cuz im not a genius like you. can you possibly help me get this going. I run a very stable PC so I have no idea whats causing such a COMPLETE FAILURE by wingetUI. maybe u have an idea. thanks always and thanks for at least geting winget running so i can DL apps wo the store.

but wingetUI is just gravy ...that doesnt run. would be very cool to have if it work I wont pst my lgs and stuff until I here back from yu, but these python errrors are just a nemesis to me the barely programmer. Yes I did my time with BASIC in the 80s, some COBOL on a very weird job that paid a lot. and some linux scripting and a bunch other oddball stuff, but no python. So im not hopeless, but I can handle bash, but powershell is very foreign to me. As always, your fan Randy