Jump to content

Ayuda en Silent o Desatendido


geodasoft

Recommended Posts

Amigos tengo un problema el programa es xmplay  y PDFSuite

%PROGRAMFILES%  se instala el programa normal el problema es el skins

 

[En Windows XP]

[unidad]:\Documents and Settings\All Users\Datos de programa\PdfSuite\”

[En Windows 7o Windows10]

 [unidad]:\ProgramDataPdfSuite\”

como puedo asociarlo al script para que funcione los dos

 

C:\Documents and Settings\All Users\Menú Inicio\Programas\Xmplay    [En Windows XP]
%AppData%\Microsoft\Windows\Start Menu\Programs\ Xmplay   [En Windows 7o Windows10]

ygualmente  se ppuede hacer un script para que  de en los

 

 

agradeceria su ayuda

Link to comment
Share on other sites

Quizá puedes adaptar esto a tu script detectando la versión de Windows... sería muy fácil si utilizaras Inno Setup...

SaluII... ;-)

 

@echo off

ver | find "5.1" > nul
if %ERRORLEVEL% == 0 goto win_xp

ver | find "6.1." > nul
if %ERRORLEVEL% == 0 goto win_7

ver | find "6.2." > nul
if %ERRORLEVEL% == 0 goto win_8

ver | find "6.3." > nul
if %ERRORLEVEL% == 0 goto win_81

ver | find "10.0." > nul
if %ERRORLEVEL% == 0 goto win_10

:win_7
echo El Sistema es Windows 7
pause
goto exit

:win_xp
echo El Sistema es Windows XP
pause
goto exit

:win_8
echo El Sistema es Windows 8
pause
goto exit

:win_81
echo El Sistema es Windows 8.1
pause
goto exit

:win_10
echo El Sistema es Windows 10
pause
goto exit
 @echo off
cls
REM Identify OS.
ver | find /i "10.0." > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows 10
ver | find /i "6.3." > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows 8.1
ver | find /i "6.2." > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows 8
ver | find /i "6.1." > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows 7
ver | find /i "6.0." > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows Vista
ver | find /i "5.1." > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows XP
ver | find /i "5.2." > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows 2003
ver | find /i "Windows 2000" > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows 2000
ver | find /i "Windows NT" > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows NT
ver | find /i ">Windows ME" > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows ME
ver | find /i "Windows 98" > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows 98
ver | find /i "Windows 95" > nul
if %errorlevel%==0 set VERSIONWINDOWS=Windows 95

REM Identify bit
IF NOT EXIST "%programfiles(x86)%" set VERSIONBIT=32 bit
IF EXIST "%programfiles(x86)%" set VERSIONBIT=64 bit

REM Display result
echo %VERSIONWINDOWS% %VERSIONBIT%
echo.
pause 

 

Link to comment
Share on other sites

  • 1 month later...

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...