jadtunrau Posted December 29, 2010 Share Posted December 29, 2010 (edited) I update my software often and so I like to have the name of the app with the version appended to the end. For example:VLC Media Player 1.1.0However, I don't want to have to update this within WPI constantly . Is there a way I can create a variable or something in the command string? Currently under the command tab I have:"%root%\Media\VLC Media Player*.exe"But placing an astrisk behind the name will cause the installer to fail as well. Any suggestions? Edited December 29, 2010 by jadtunrau Link to comment Share on other sites More sharing options...
ricktendo Posted December 29, 2010 Share Posted December 29, 2010 Rename the installer to begin with, remove the version info from the filename Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted December 29, 2010 Share Posted December 29, 2010 HOW do you suggest WPI then reads the file version info? Link to comment Share on other sites More sharing options...
ricktendo Posted December 29, 2010 Share Posted December 29, 2010 (edited) Instead of VLC Media Player v1.2.3.4.exe just use VLC Media Player.exe, new update comes out remove the version info from the filename and overwrite the older installer Edited December 29, 2010 by ricktendo64 Link to comment Share on other sites More sharing options...
mritter Posted December 30, 2010 Share Posted December 30, 2010 Ricktendo is correct. NEVER put a file version in the filename.WPI doesn't look for the version in the filename name, it looks in the actual installer exe or program.exe. Link to comment Share on other sites More sharing options...
jadtunrau Posted December 30, 2010 Author Share Posted December 30, 2010 I think I understand what you guys are saying. However, this still leaves me with the same problem. If I were to download the latest version of VLC Media Player as VLC Media Player v1.1.3.5 and just rename it as VLC Media Player, then how will I know when I need to download the latest version again if the version is not attached to the file name? I'm trying to keep all my files up to date with the latest versions before I run WPI. Link to comment Share on other sites More sharing options...
ricktendo Posted December 30, 2010 Share Posted December 30, 2010 (edited) Then there is no way around it, you have to update wpi with new info every app updateBut he is right, a * variable or something similar would be nice Edited December 30, 2010 by ricktendo64 Link to comment Share on other sites More sharing options...
jadtunrau Posted December 30, 2010 Author Share Posted December 30, 2010 But he is right, a * variable or something similar would be niceSo I take it by your response that there is no variable for this? If true, then I will have quite a bit more time trying to keep my files up to date while using WPI . Link to comment Share on other sites More sharing options...
ricktendo Posted December 30, 2010 Share Posted December 30, 2010 (edited) Me personally I use getFileVersion with the equal or greater than symbol (>=) to have WPI check if my program is installed or up to date, here are a couple examples (you have to update it every app update)prog[pn]=['Adobe Reader X'];uid[pn]=['ADOBEREADER'];dflt[pn]=['yes'];forc[pn]=['no'];bit64[pn]=['no'];cat[pn]=['Applications'];cmds[pn]=['"%wpipath%\\Install\\AdbeRdr1000_en_US.msi" TRANSFORMS=AdobeMod.mst /qn'];cond[pn]=['getOSlang()=="ENU"'];gcond[pn]=['getFileVersion("%ProgramFiles%\\Adobe\\Reader 10.0\\Reader\\AcroRd32.exe")>="10.0.0.396"||getFileVersion("%ProgramFiles(x86)%\\Adobe\\Reader 10.0\\Reader\\AcroRd32.exe")>="10.0.0.396"'];desc[pn]=['Adobe Reader'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\Adobe.png"'];picw[pn]=['0'];pich[pn]=['0'];textl[pn]=['Right'];pn++;prog[pn]=['WinRAR (x64)'];uid[pn]=['WINRAR64'];dflt[pn]=['yes'];forc[pn]=['no'];bit64[pn]=['no'];cat[pn]=['Applications'];cmds[pn]=['"%wpipath%\\Install\\winrar-x64-393.exe" -s'];cond[pn]=['getArch()=="AMD64"'];gcond[pn]=['getFileVersion("%ProgramFiles%\\WinRAR\\WinRAR.exe")>="3.93.0.0"'];desc[pn]=['WinRAR'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\WinRAR.png"'];picw[pn]=['0'];pich[pn]=['0'];textl[pn]=['Right'];pn++; Edited December 30, 2010 by ricktendo64 Link to comment Share on other sites More sharing options...
jadtunrau Posted December 31, 2010 Author Share Posted December 31, 2010 Me personally I use getFileVersion with the equal or greater than symbol (>=) to have WPI check if my program is installed or up to date, here are a couple examples (you have to update it every app update)prog[pn]=['Adobe Reader X'];uid[pn]=['ADOBEREADER'];dflt[pn]=['yes'];forc[pn]=['no'];bit64[pn]=['no'];cat[pn]=['Applications'];cmds[pn]=['"%wpipath%\\Install\\AdbeRdr1000_en_US.msi" TRANSFORMS=AdobeMod.mst /qn'];cond[pn]=['getOSlang()=="ENU"'];gcond[pn]=['getFileVersion("%ProgramFiles%\\Adobe\\Reader 10.0\\Reader\\AcroRd32.exe")>="10.0.0.396"||getFileVersion("%ProgramFiles(x86)%\\Adobe\\Reader 10.0\\Reader\\AcroRd32.exe")>="10.0.0.396"'];desc[pn]=['Adobe Reader'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\Adobe.png"'];picw[pn]=['0'];pich[pn]=['0'];textl[pn]=['Right'];pn++;prog[pn]=['WinRAR (x64)'];uid[pn]=['WINRAR64'];dflt[pn]=['yes'];forc[pn]=['no'];bit64[pn]=['no'];cat[pn]=['Applications'];cmds[pn]=['"%wpipath%\\Install\\winrar-x64-393.exe" -s'];cond[pn]=['getArch()=="AMD64"'];gcond[pn]=['getFileVersion("%ProgramFiles%\\WinRAR\\WinRAR.exe")>="3.93.0.0"'];desc[pn]=['WinRAR'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\WinRAR.png"'];picw[pn]=['0'];pich[pn]=['0'];textl[pn]=['Right'];pn++;What you are suggesting is a good idea for installing software on a PC that already has many programs installed. What I need WPI for is after a fresh installation of windows. For me, using the 'getFileVersion' would require more work with each update... not less. That's ok though, I'll just wait and hope for the option to install using the *.exe function. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 2, 2011 Share Posted January 2, 2011 HOW do you suggest WPI then reads the file version info?PLEASE ANSWER... Link to comment Share on other sites More sharing options...
engjcowi Posted January 2, 2011 Share Posted January 2, 2011 Hi guys. I personally use ketarin and wpi. They work v well together. E.g wpi is set to install vlc media player silently and i have this set in my installs programs folder. I have ketarin in root directory and i have it set to check every prog in my wpi install folder and if theres an update it will auto download and replace that file to keep all my installers uptodateHope that helps Link to comment Share on other sites More sharing options...
jadtunrau Posted January 2, 2011 Author Share Posted January 2, 2011 HOW do you suggest WPI then reads the file version info?PLEASE ANSWER...I just started using WPI, so I wasn't sure if it was possible to use a variable to read this information. The easier way though would be using an asterisk (e.g. VLC*.exe), then it wouldn't be necessary. Great piece of software though as I can see a lot of time went into this. Hi guys. I personally use ketarin and wpi. They work v well together. E.g wpi is set to install vlc media player silently and i have this set in my installs programs folder. I have ketarin in root directory and i have it set to check every prog in my wpi install folder and if theres an update it will auto download and replace that file to keep all my installers uptodateHope that helpsI as well have been using Ketarin, but the main drawback for me to use it with WPI is that I never know what version exactly I'm updating to. I noticed that there is an option to install directly from Ketarin - you can even setup groups similarly to WPI. I might give that a shot and see if I can do it all from one program. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now