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

[FEATURE REQUEST] Batch script creator #2867

Open
2 tasks done
Y-PLONI opened this issue Oct 21, 2024 · 7 comments
Open
2 tasks done

[FEATURE REQUEST] Batch script creator #2867

Y-PLONI opened this issue Oct 21, 2024 · 7 comments
Assignees
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go

Comments

@Y-PLONI
Copy link

Y-PLONI commented Oct 21, 2024

Please confirm these before moving forward.

  • I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
  • This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template.

Describe the new feature

I just saw the "Backup" feature, and it's amazing!
I would love for you to expand on it by adding an option to generate a backup file and install everything contained within it. This way, after resetting my computer or getting a new one, I would only need to import the backup file, and the software would take care of the installation automatically! That would be fantastic! I wouldn't need to install anything manually! The software would do it all for me!

For anything not available in package managers, a command like this could be used:

I understand this might not fall under your software's scope, but I would really appreciate it if you could consider adding this feature. It would be the perfect solution!
I’m attaching a file I created for installing many applications, but 1. It’s challenging to update it repeatedly, and 2. It’s only suited for my needs. If you could enable this functionality, it would be perfect!
Here’s the file:
''.txt

Describe how this new feature could help users

This enhancement would streamline the setup process for users by allowing them to quickly restore their software environment after a reset or a new computer purchase, minimizing the need for manual installations.

@Y-PLONI Y-PLONI added the new-feature A new feature that could be useful in WingetUI label Oct 21, 2024
@Y-PLONI Y-PLONI changed the title Enhancement Request: Backup Feature Expansion Backup Feature Expansion Oct 21, 2024
@marticliment
Copy link
Owner

I would love for you to expand on it by adding an option to generate a backup file and install everything contained within it. This way, after resetting my computer or getting a new one, I would only need to import the backup file, and the software would take care of the installation automatically! That would be fantastic! I wouldn't need to install anything manually! The software would do it all for me!

I mean, that is what UniGetUI does, right?
You can open the .json or .ubundle file with UniGetUI and then "select all" -> "Install selection"

@Y-PLONI
Copy link
Author

Y-PLONI commented Oct 21, 2024

I didn't know this could be done, thanks for the reference.
Can you develop the second part of the request?
Thank you very much!!!

I think this can be done easily, by adding a window where the user will paste a link to download the desired software, and the software will do the rest, as in the file I uploaded.

@marticliment
Copy link
Owner

Yes, having a batch script creator is something I have in mind.

@marticliment marticliment changed the title Backup Feature Expansion [FEATURE REQUEST] Batch script creator Oct 21, 2024
@Y-PLONI
Copy link
Author

Y-PLONI commented Oct 21, 2024

thanks! You have no idea how much this will help me!
I was just thinking of resetting the computer, I updated to 24H2, and I have problems, but I don't have the strength to install all the software...

@Y-PLONI
Copy link
Author

Y-PLONI commented Oct 21, 2024

Now I see that I did not write the code in the first post.
The code is in the text file, but for your convenience, here is an example:

# Download and save the Office IMG file
Invoke-WebRequest -Uri "https://officecdn.microsoft.com/db/492350F6-3A01-4F97-B9C0-C7C6DDF67D60/media/he-il/O365ProPlusRetail.img" -OutFile "C:\Users\user\Downloads\ OFFICE.IMG"
# Open the IMG file as a virtual drive
$mountResult = Mount-DiskImage -ImagePath "C:\Users\user\Downloads\OFFICE.IMG" -PassThru
# Find the drive letter of the IMG
$driveLetter = ($mountResult | Get-Volume).DriveLetter
# Run the EXE file from the virtual drive
Start-Process -FilePath "$driveLetter\path\to\setup.exe" -ArgumentList "/S" -Wait
# Disconnect the virtual drive after installation
Dismount-DiskImage -ImagePath "C:\Users\user\Downloads\OFFICE.IMG"
Remove-Item -Path "C:\Users\user\Downloads\OFFICE.IMG"

In normal files, you only need to download, install and delete the file, much simpler.

@marticliment
Copy link
Owner

I don't know if out-of-package-manager software will be possible to implement on a batch file, but at least for the software installable via a package manager this is 100% doable

@Y-PLONI
Copy link
Author

Y-PLONI commented Oct 21, 2024

I'm not a programmer, but [out of pure curiosity] I'd love to understand why you won't be able to implement it, didn't I implement it, as you saw in the code, you're much more talented! Why won't it work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants