RyanVM Posted October 10, 2004 Author Share Posted October 10, 2004 do you add them here at the top or at the bottom and do you do the same with txtsetup.sif[Files] RVMUpPck.inf = 1,,,,,,,20,0,0RVMUpPck.cab = 100,,,,,,_x,,3,3d1,RVMUpPck.inf <----d1,RVMUpPck.cab <----d1,nlite.infd9,1394.in_d9,845.in_d9,bcm4sbxp.in_d9,cm821f.in_d9,net1394.in_d9,nv4_disp.in_d9,smwdmch4.in_d9,845.infd9,1394.infd9,bcm4sbxp.infd9,nv4_disp.infd9,smwdmch4.infd9,cm821f.infd9,net1394.infd1,ntdll.dll,system32\ntdll.dlld1,RVMUpPck.inf <----d1,RVMUpPck.cab <----First off, why are you adding the txtsetup.sif entries to dosnet.inf???Second, yes, the dosnet.inf entries are fine there, but REMOVE THE TXTSETUP.SIF ENTRIES. Link to comment Share on other sites More sharing options...
RyanVM Posted October 10, 2004 Author Share Posted October 10, 2004 About the date I think what we need to know is if hotfixes use date template from Regional and language settings.If so, then this code will solve the problemFOR /F %%I IN ('DATE /T') DO SET INSTALLDATE=%%IThe problem I see is that with the English version, DATE /T (or %DATE%) returns "Sun 10/10/2004" while for non-English versions, it doesn't put the day in front. Doing %DATE:~-10% fixes that because it takes the last 10 characters which appear to be the same for all languages. Link to comment Share on other sites More sharing options...
Famer Posted October 10, 2004 Share Posted October 10, 2004 do you add them here at the top or at the bottom and do you do the same with txtsetup.sif[Files] RVMUpPck.inf = 1,,,,,,,20,0,0RVMUpPck.cab = 100,,,,,,_x,,3,3d1,RVMUpPck.inf <----d1,RVMUpPck.cab <----d1,nlite.infd9,1394.in_d9,845.in_d9,bcm4sbxp.in_d9,cm821f.in_d9,net1394.in_d9,nv4_disp.in_d9,smwdmch4.in_d9,845.infd9,1394.infd9,bcm4sbxp.infd9,nv4_disp.infd9,smwdmch4.infd9,cm821f.infd9,net1394.infd1,ntdll.dll,system32\ntdll.dlld1,RVMUpPck.inf <----d1,RVMUpPck.cab <----First off, why are you adding the txtsetup.sif entries to dosnet.inf???Second, yes, the dosnet.inf entries are fine there, but REMOVE THE TXTSETUP.SIF ENTRIES. im not i just wanted to know if the placement for the files go the same Link to comment Share on other sites More sharing options...
RyanVM Posted October 10, 2004 Author Share Posted October 10, 2004 im not i just wanted to know if the placement for the files go the sameYeah, as long as the entries are in the correct section, it doesn't matter where in the section they are. Link to comment Share on other sites More sharing options...
RyanVM Posted October 10, 2004 Author Share Posted October 10, 2004 Also, a little bird on my shoulder tells me a new version of nLite supporting my pack is coming soon Link to comment Share on other sites More sharing options...
Famer Posted October 10, 2004 Share Posted October 10, 2004 Yippieeeeeeeeee Link to comment Share on other sites More sharing options...
DigeratiPrime Posted October 10, 2004 Share Posted October 10, 2004 This is sweet. I will have to try this tommorow. Link to comment Share on other sites More sharing options...
jdoe Posted October 10, 2004 Share Posted October 10, 2004 About the date I think what we need to know is if hotfixes use date template from Regional and language settings.If so, then this code will solve the problemFOR /F %%I IN ('DATE /T') DO SET INSTALLDATE=%%IThe problem I see is that with the English version, DATE /T (or %DATE%) returns "Sun 10/10/2004" while for non-English versions, it doesn't put the day in front. Doing %DATE:~-10% fixes that because it takes the last 10 characters which appear to be the same for all languages. I thought weird behavior were for non-english windows version.%DATE% is supposed to be a short date like mm/dd/yy and now it's the english version that is not predictable.Coding for Windows platform is all about dealing with exception.But we know that since long time ago. Link to comment Share on other sites More sharing options...
RyanVM Posted October 11, 2004 Author Share Posted October 11, 2004 I thought weird behavior were for non-english windows version.%DATE% is supposed to be a short date like mm/dd/yy and now it's the english version that is not predictable.Coding for Windows platform is all about dealing with exception.But we know that since long time ago. Well, it's quite possible that the English version is the exception (I wouldn't have known that since it's the version I use ). It's also quite irrelevant. If -10 works for all instances, then we're set.Can some people using XP languages other than English confirm that for me? In a command prompt, type inecho %DATE:~-10%and post the results. Link to comment Share on other sites More sharing options...
a06lp Posted October 11, 2004 Share Posted October 11, 2004 Can some people using XP languages other than English confirm that for me? In a command prompt, type inecho %DATE:~-10%and post the results.Well, I'm using English, but my result is: 10/10/2004 Link to comment Share on other sites More sharing options...
creopard Posted October 11, 2004 Share Posted October 11, 2004 "echo %DATE:~-10%" returns "11.10.2004" Link to comment Share on other sites More sharing options...
codejunkie Posted October 11, 2004 Share Posted October 11, 2004 echo %DATE:~-10% Returns 11/10/2004Im, using a Corp-English installationecho %date% returns 11/10/2004 but seeing not everyones is the same, so the universal version is just great well done swgreed I think Link to comment Share on other sites More sharing options...
a06lp Posted October 11, 2004 Share Posted October 11, 2004 "echo %DATE:~-10%" returns "11.10.2004"actually, for me, it doesn't!My output is: 10/11/2004 Link to comment Share on other sites More sharing options...
Denney Posted October 11, 2004 Share Posted October 11, 2004 It all depends on your regional settings (more specifically: Regional and language options -> Regional options -> Customize -> Date -> Short date format).For me %DATE% returns 11.10.04. Link to comment Share on other sites More sharing options...
creopard Posted October 11, 2004 Share Posted October 11, 2004 "echo %DATE:~-10%" returns "11.10.2004"actually, for me, it doesn't!My output is: 10/11/2004 German date format doesn't use slashes... it's standardized with dots Link to comment Share on other sites More sharing options...
Recommended Posts