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

Can't import settings.json #2682

Closed
hebval opened this issue Sep 5, 2024 · 3 comments
Closed

Can't import settings.json #2682

hebval opened this issue Sep 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@hebval
Copy link

hebval commented Sep 5, 2024

Describe the bug

I just use the script for the first time and exported the settings to try importing them on another PC. I get the following Powershell output :

Invoke-WPFPresets : Unable to process argument transformation on parameter 'preset'. Impossible to
convert the value to type System.String.
Au caractère Ligne:4398 : 35

  •     Invoke-WPFPresets -preset $flattenedJson -imported $true
    
  •                               ~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData : (:) [Invoke-WPFPresets], ParameterBindingArgumentTransformationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Invoke-WPFPresets

To Reproduce

  1. Start the script
  2. Make some settings and export them
  3. Close the script window
  4. Open the script again
  5. Import the .json file

Expected behavior

I was expecting that all the choices I made would be imported automatically

Additional context

Here is my JSON exported file :

{
"WPFTweaks": [
"WPFTweaksRestorePoint",
"WPFTweaksWifi",
"WPFTweaksDisableipsix",
"WPFTweaksHome",
"WPFTweaksTeredo",
"WPFTweaksRemoveHomeGallery",
"WPFTweaksDisableLMS1",
"WPFTweaksStorage",
"WPFTweaksHiber",
"WPFTweaksDebloatAdobe",
"WPFTweaksConsumerFeatures",
"WPFTweaksDisableNotifications",
"WPFTweaksDVR",
"WPFTweaksTele",
"WPFTweaksDisplay",
"WPFTweaksAH",
"WPFTweaksRightClickMenu",
"WPFTweaksEndTaskOnTaskbar",
"WPFTweaksBlockAdobeNet",
"WPFTweaksEdgeDebloat",
"WPFTweaksRemoveCopilot",
"WPFTweaksLoc",
"WPFTweaksRemoveOnedrive",
"WPFTweaksServices",
"WPFTweaksDisableFSO",
"WPFTweaksPowershell7Tele",
"WPFTweaksDeleteTempFiles",
"WPFTweaksDisableBGapps",
"WPFTweaksPowershell7"
],
"Install": [
{
"winget": "7zip.7zip",
"choco": "7zip"
},
{
"winget": "WinSCP.WinSCP",
"choco": "winscp"
},
{
"winget": "Gyan.FFmpeg",
"choco": "ffmpeg-full"
},
{
"winget": "CPUID.HWMonitor",
"choco": "hwmonitor"
},
{
"winget": "CrystalDewWorld.CrystalDiskInfo",
"choco": "crystaldiskinfo"
},
{
"winget": "Notepad++.Notepad++",
"choco": "notepadplusplus"
},
{
"winget": "GIMP.GIMP",
"choco": "gimp"
},
{
"winget": "Valve.Steam",
"choco": "steam-client"
},
{
"winget": "OBSProject.OBSStudio",
"choco": "obs-studio"
},
{
"winget": "Google.Chrome",
"choco": "googlechrome"
},
{
"winget": "VideoLAN.VLC",
"choco": "vlc"
},
{
"winget": "JAMSoftware.TreeSize.Free",
"choco": "treesizefree"
},
{
"winget": "ddu",
"choco": "ddu"
},
{
"winget": "PlayStation.PSRemotePlay",
"choco": "ps-remote-play"
},
{
"winget": "ElectronicArts.EADesktop",
"choco": "ea-app"
},
{
"winget": "Plex.Plex",
"choco": "plex"
},
{
"winget": "Discord.Discord",
"choco": "discord"
},
{
"winget": "Ubisoft.Connect",
"choco": "ubisoft-connect"
},
{
"winget": "EpicGames.EpicGamesLauncher",
"choco": "epicgameslauncher"
},
{
"winget": "PuTTY.PuTTY",
"choco": "putty"
},
{
"winget": "Nikse.SubtitleEdit",
"choco": "na"
},
{
"winget": "Aegisub.Aegisub",
"choco": "aegisub"
}
],
"WPFInstall": [
"WPFInstall7zip",
"WPFInstallwinscp",
"WPFInstallffmpeg",
"WPFInstallhwmonitor",
"WPFInstallcrystaldiskinfo",
"WPFInstallnotepadplus",
"WPFInstallgimp",
"WPFInstallsteam",
"WPFInstallobs",
"WPFInstallchrome",
"WPFInstallvlc",
"WPFInstalltreesize",
"WPFInstallddu",
"WPFInstallpsremoteplay",
"WPFInstalleaapp",
"WPFInstallplexdesktop",
"WPFInstalldiscord",
"WPFInstallubisoft",
"WPFInstallepicgames",
"WPFInstallputty",
"WPFInstallSubtitleEdit",
"WPFInstallAegisub"
],
"WPFFeature": [
"WPFFeatureDisableSearchSuggestions",
"WPFFeatureEnableLegacyRecovery",
"WPFFeaturesdotnet"
]
}

@hebval hebval added the bug Something isn't working label Sep 5, 2024
@MyDrift-user
Copy link
Contributor

Hey @hebval
Thanks for reporting the Issue, this was already fixed in #2658 and you will be able to use that functionality again starting the next full-release.
Since this is fixed and seems to be the only issue, I am going to close this
/close

@github-actions github-actions bot closed this as completed Sep 5, 2024
@hebval
Copy link
Author

hebval commented Sep 5, 2024

Woops, sorry for the duplicate then! :)

@MyDrift-user
Copy link
Contributor

No Issues, the PR and the Issue were both closed so a bit hard to know what is already fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants