Skip to content

Condition registry value

Featured Replies

Hi,

 

I want migrate a wallpaper only if path "HKCU\Control Panel\Desktop [WallPaper]" not equal "C:\temp\my_wallpaper.jpg".

 

If different of "C:\temp\my_wallpaper.jpg" : OK to migrate.

 

my xml :


<unconditionalExclude>
<objectSet>
<condition negation="Yes">MigXmlHelper.DoesStringContentEqual("Registry","HKCU\Control Panel\Desktop [WallPaper]","C:\temp\my_wallpaper.jpg")</condition>
<pattern type="Registry">HKCU\Control Panel\Desktop [WallPaper]</pattern>
<pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\* [*]</pattern>
</objectSet>
</unconditionalExclude>

But don't work. When restore, old wallpaper is restored...

 

 

 

 

 

Regards,

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.