Hi!
i have a new question. 🙂
As someones know, i make a 3D ActiveDesktop program.
To play animation, i use Viewpoint Player.
As i don't want to install it if user have this player, i would like to know if it's possible to detect it.
its position in regedit is :
HKCR ".mts" "Viewpoint Media File.mts" (a REG_SZ string)
So if you have an idea
thinks for your help
Is it possible to test if data exist ?
5 posts
Just use ReadRegStr to read the position of .mts in HKCR. If it is registered to ViewPoint (so use StrCmp) then it is installed!
-Hendri.
-Hendri.
Doesn't work !
i've written this but it doesn't ork: why ?
Section ""
ReadRegStr $1 HKCR "" ".mts"
StrCmp $1 "" doesNotExist
Goto done
doesNotExist:
ExecWait viewpoint.exe
done:
SectionEnd
i've written this but it doesn't ork: why ?
Section ""
ReadRegStr $1 HKCR "" ".mts"
StrCmp $1 "" doesNotExist
Goto done
doesNotExist:
ExecWait viewpoint.exe
done:
SectionEnd
Re: Doesn't work !
Section ""
ReadRegStr $1 HKCR ".mts" ""
StrCmp $1 "" doesNotExist
Goto done
doesNotExist:
ExecWait viewpoint.exe
done:
SectionEnd
Originally posted by cooladnI think it should be
i've written this but it doesn't ork: why ?
Section ""
ReadRegStr $1 HKCR "" ".mts"
StrCmp $1 "" doesNotExist
Goto done
doesNotExist:
ExecWait viewpoint.exe
done:
SectionEnd
Section ""
ReadRegStr $1 HKCR ".mts" ""
StrCmp $1 "" doesNotExist
Goto done
doesNotExist:
ExecWait viewpoint.exe
done:
SectionEnd
i've found the solution!
i don't redirect correctly, so this is the good code
ReadRegStr $1 HKLM "" ".mts"
StrCmp $1 "" viewpoint
ExecWait VMPFullInstall.exe
viewpoint:
i don't redirect correctly, so this is the good code
ReadRegStr $1 HKLM "" ".mts"
StrCmp $1 "" viewpoint
ExecWait VMPFullInstall.exe
viewpoint: